[NoClassDefFoundError] Crash with version 2.16.4 on start Ranging Beacons In Region
See original GitHub issueExpected 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:
- Created 4 years ago
- Comments:5 (3 by maintainers)
Top 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 >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
At least the StackOverflow post above provides a workaround.
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: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 ?