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.

[NoClassDefFoundError] Crash with version 2.16.4 on start Ranging Beacons In Region

See original GitHub issue

Expected behavior

Library starts ranging.

Actual behavior

java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/localbroadcastmanager/content/LocalBroadcastManager;

org.altbeacon.beacon.BeaconLocalBroadcastProcessor.unregister + 80 (BeaconLocalBroadcastProcessor.java:80)
--
  | org.altbeacon.beacon.BeaconLocalBroadcastProcessor.register + 72 (BeaconLocalBroadcastProcessor.java:72)
  | org.altbeacon.beacon.service.ScanJobScheduler.ensureNotificationProcessorSetup + 70 (ScanJobScheduler.java:70)
  | org.altbeacon.beacon.service.ScanJobScheduler.schedule + 130 (ScanJobScheduler.java:130)
  | org.altbeacon.beacon.service.ScanJobScheduler.applySettingsToScheduledJob + 85 (ScanJobScheduler.java:85)
  | org.altbeacon.beacon.service.ScanJobScheduler.applySettingsToScheduledJob + 92 (ScanJobScheduler.java:92)
  | org.altbeacon.beacon.BeaconManager.applyChangesToServices + 1003 (BeaconManager.java:1003)
  | org.altbeacon.beacon.BeaconManager.startMonitoringBeaconsInRegion + 938 (BeaconManager.java:938)
  | org.altbeacon.beacon.startup.RegionBootstrap$InternalBeaconConsumer.onBeaconServiceConnect + 203 (RegionBootstrap.java:203)
  | org.altbeacon.beacon.BeaconManager.bind + 420 (BeaconManager.java:420)
  | org.altbeacon.beacon.startup.RegionBootstrap.<init> + 105 (RegionBootstrap.java:105)

Steps to reproduce this behavior

Replaced the 2.16.3 lib with new version 2.16.4

implementation ‘org.altbeacon:android-beacon-library:2.16.3’

Build a release APK Run the APK and start scanning for BLE devices and beacons

Crash is not reproduced when running the app locally from Android Studio

Mobile device model and OS version

OnePlus A6003 Android 10

Android Beacon Library version

2.16.4

IMPORTANT: This forum is reserved for feature requests or reproducible bugs with the library itself. If you need help with using the library with your project, please open a new question on StackOverflow.com.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
davidgyoungcommented, Feb 28, 2020

At least the StackOverflow post above provides a workaround.

1reaction
matdevcommented, Feb 11, 2020

Thanks for the link to the stackoverflow question. Using the accepted answer, my app no longer crashes using version 2.16.4 of the lib 😃

I’ve had to add the following code in my app/build.gradle though:

android.packagingOptions { 
    exclude 'META-INF/androidx.localbroadcastmanager_localbroadcastmanager.version' 
}

NOTE: I’m unable to install the unsigned APK of the reference app. If you still want me to test it, can you please send me a signed APK ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

App crashes when trying to range beacons after working fine ...
I have this beacon app that - much like everyone else's beacon app - monitors a certain number of regions, and once it...
Read more >
oraclesniplets - Oracle Sniplets on Tumblr
- Core dumps are sign of an abnormal situation and in most of the cases it happens due to heavily loaded server or...
Read more >
Oracle Sniplets - Tumblr
The Grid Control Agent crashes immediately on startup, even before attempting an upload. It crashes when attempting to connect to a monitored ...
Read more >
De Gloria en Gloria Te Veo. como fazer mingau de mucilon com ...
Williamson County Central Appraisal District Texas. ... Samsung Galaxy Note 10.1 Edition 2014 Boxunuşu və Rəy. əsas hoon shahid afridi film aktrisaları. bu ......
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