-
Notifications
You must be signed in to change notification settings - Fork 836
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 on Start Ranging #919
Comments
|
I don't think this problem originates from this library. In library version 2.16.2, the class mentioned in the stack trace does not use the deprecated Are you perhaps using code that dynamically changes the classes used by the library to use androidx variants? If something else is altering the library's classes, then this project can't do anything about it. |
Well, I did not do anything that was not expected. The suggested solution
Seems to work well for me. |
Glad to hear you found a solution, @JonathanImperato |
I found details. |
@khcpietro , can you please clarify this:
I do not understand this part. |
My mistake. I mean You as @JonathanImperato.
@JonathanImperato may enabled Jetifier, so In anyway, both |
I see. Well, somehow the reference app builds fine on SDK 29 and runs on Android 10 without crashing. And it has Why does it not have the same problem? |
I admit It's problem of In summary,
|
Worked for me @khcpietro I downgraded to androidx.appcompat:appcompat to 1.0.2 and everything works fine now. Targeting the SDK version (either using API 28 or 29) didn't matter for me. I tested both on the library version 2.16.2 and 2.16.3 |
I also have this crash with the new version of the lib 2.16.4 |
Any update on this? Suddenly getting crashes.
|
Yes, check this post: #948 |
In build.gradle, You should modify "implementation 'androidx.appcompat:appcompat:1.0.2' " |
I am locking this issue as it has become a grab-bag of comments and requests for assistance. To be clear, this issue is marked as resolved, because there are a number of known solutions. The specific solution for you may be different depending on your build setup. The root issue is that the androidx.appcompat:appcompat are in flux ad new versions come out, and using different versions in combination with other libraries can cause the symptoms described above. To summarize, please try the following: *. In build.gradle, if you have a line like this, make sure you use the version shown here or newer: If you try the above and it doesn't work, please open a question on StackOverflow.com. If we find we need to update these instructions I will. |
Expected behavior
Library starts ranging.
Actual behavior
Steps to reproduce this behavior
Add to the gradle this library
implementation 'com.google.android.material:material:1.1.0-alpha9' , version alpha9 and above.
Mobile device model and OS version
OnePlus 3t Android 9, OnePlus 7 Pro Android 9
Android Beacon Library version
Tested on latest release (2.16.2) and latest pre-release (2.16.3-beta4@aar)
The text was updated successfully, but these errors were encountered: