question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] Crash when adding a badge.

See original GitHub issue

Hi @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:closed
  • Created 6 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Ashok-Varmacommented, Jul 10, 2017

Fixed in 2.0.2. With in an hour it will be up.

1reaction
Ashok-Varmacommented, Jul 10, 2017

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found