-
Notifications
You must be signed in to change notification settings - Fork 835
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[NoClassDefFoundError] Crash with version 2.16.4 on start Ranging Beacons In Region #948
Comments
Do you have proguard enabled? If you do, does the problem go away if you disable it and do a release build? |
I do have the same problem after disabling proguard |
Another report of this here: https://stackoverflow.com/questions/60140990/getting-fatal-crash-using-startmonitoringbeaconsinregion This certainly seems to be a real issue, but there must be another variable that we can't pinpoint. I cannot reproduce this with the reference app with the latest library version if I build a release APK and install it on my phone. @matdev, can you please try an unmodified copy of the reference app https://github.com/altBeacon/android-beacon-library-reference, make a release build and then install and see if you get this crash? If you do not get a crash, then we can start looking for difference in the gradle files between your project and the reference app to look for a difference that triggers it. |
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
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 ? |
At least the StackOverflow post above provides a workaround. |
Expected behavior
Library starts ranging.
Actual behavior
java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/localbroadcastmanager/content/LocalBroadcastManager;
Steps to reproduce this behavior
Replaced the 2.16.3 lib with new version 2.16.4
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.
The text was updated successfully, but these errors were encountered: