-
Notifications
You must be signed in to change notification settings - Fork 50
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
Crash on Android 10 #14
Comments
I have seen a crash report with this. I don't know what happens if I build targeting a lower API level I don't have a suitable device to test on at present. It's going to be getting the debug logging level from the ANT Services Settings App. Maybe it will actually work if the app is not installed. I would expect the code to deal with this case. |
This is a known compatibility issue which we are planning to address soon in a new API release. In the meantime, catching the "SecurityException" thrown by "bindAndRequest" should also be a suitable workaround. |
Catching the exception is not a workaround as the device is not connected. Please provide a fix asap. Thank you |
We've posted a release candidate branch with a new Plugin Library which you should be able to easily replace your existing JAR with here: https://github.com/ant-wireless/ANT-Android-SDKs/tree/development/C.B6-P.B6RC/ANT%2B_Android_SDK Let us know how your experience with it goes. |
Works out for me. Thank you for your quick reaction. |
You should be able to replicate the crash by installing the 3.8.0 version of the AntPlusPluginService which now targets API level 29, as it was mandated by Google to target newer API levels which trigger the new exception. |
Well, maybe I misunderstand you when you say "replicate the crash with 3.8.0". I'd hope that there is no crash when switching to 3.8.0. Is this just throwing another exception? The |
Correct, I was referencing the "crash" inside this issue, but it's just the As you've intuited, This version of the library no longer calls into a global shared preferences file for setting the debug level. |
sorry for the dumb question, how do I use the .aar file? Is it possible to provide a .jar, so that we can simply replace the faulty library? Thank you for your help. |
Just use it the same as a .jar. Android studio and gradle will do the right thing. I have this in my build.gradle dependencies section.
If your not using Android studio or Gradle then time for some Googleing... |
Using the pluginLib_3-6-0.jar on Android 10 results in the following crash :
on a Samsung Galaxy S10. Please fix as otherwise Ant+ cannot be used on Android 10.
Thank you
Robert
The text was updated successfully, but these errors were encountered: