[BUG] Crash when adding a badge.
See original GitHub issueHi @Ashok-Varma ,
I’m using the 2.0.1
version, and I’m having the following crash when trying to add a badge.
java.lang.IllegalAccessError: Illegal class access: 'ACTIVITY' attempting to access 'com.ashokvarma.bottomnavigation.BadgeItem' (declaration of 'ACTIVITY' appears in /data/app/APK.apk)
Here is the code that triggers it (it’s Kotlin)
val tabNewBadge = TextBadgeItem().setBorderWidth(4)
.setBackgroundColorResource(R.color.primary)
.setText("")
val tabNew = BottomNavigationItem(
R.drawable.ic_fiber_new_black_24dp,
getString(R.string.tab_new)
).setActiveColor(accent)
.setBadgeItem(tabNewBadge) // <= this crashes.
Is there a way to solve this ?
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Clash Royale on Twitter: " Fix for the crash some users ...
We have released an optional update to address a couple of crashes and minor bugs (details in thread ). Make sure to check...
Read more >NBA 2K23 726e613d Error When Applying Badges Fix
A step-by-step guide on how to fix the 726e613d error code when trying to apply badges in NBA 2K23 MyPlayer or MyTeam.
Read more >[New App Store Privacy badges] "Crash Data" means third ...
I'm use only a native xcode "Crashes" tab in organaizer for check app crashes. I'm need checkbox a "Crash Data" in "Diagnostics"? If...
Read more >Since last Update "transferring badges" PROBLEM
In Multiplayer the "Please wait, transferring badges."-Window is not closing and the game is crashing after a few moments.
Read more >Renderer crash after calling navigator.setAppBadge(42) #25141
Calling navigator.setAppBadge(42) should create an application badge on taskbar with the number 42. Actual Behavior. Render process crashed ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Fixed in 2.0.2. With in an hour it will be up.
@aminecmi verified i am on it.
The problem is with the kotlin. I will give a quick fix write now. But this is some thing which needs to be reported at kotlin as well.