-
Notifications
You must be signed in to change notification settings - Fork 481
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
getBondedDevices throws [Failed resolution of: Landroidx/core/content/ContextCompat]; #52
Comments
Hello, It looks like the main issue is unavailable resolution of AndroidX. Which version of the plugin are you using? If still |
Thank you for quick response.
EDIT: EDIT2: This is a runtime error, not compile time. Most error related to AndroidX are compile-time. Code compiles fine. Commenting out the method call (getBoundedDevices) fixes the crash so it's smtg about that method.... |
Adding
to gradle.properties fixes it 🤦♂️ Maybe we could add a note to Readme? It was a solution to similar compile time issue as well. |
I was just about to ask about it :D haha Just seconds to click "comment" lol Anyway, the v0.2.1 was adding these lines (at least at the plugin |
@PsychoXIVI the same problem with v0.2.2, and adding
helped. |
Hello!
The
getBondedDevices
call never finishes, it crashes the app.I'm trying to get now connected device's address. I've gone through the lib code and failed to find this method anywhere so my idea was to get all the paired devices and find the one with BluetoothBondState.bound. IDK if this method gets paired devices or connected devices, this is what I'm testing / trying to figure out.
However... the initial call fails. This is me testing the method:
https://pastebin.com/5cdX052g
Again, I know. Async in build sux. I just wanna see the output.
This is the debug console output doe:
https://pastebin.com/tsvy0nEh
Manifest:
https://pastebin.com/PRG6vcDF
Tried
flutter clean
. Breakpoint just at the call says it has to be that call that breaks the app. Commenting it out works...2 hours of googlng didn't help.
I'm running linux (obvious from debug message), live device Samsung J7, Android 9.1.
Any ideas?
EDIT: I don't know how Github "code" works but I don't like it. Moved it to mpastebin.
The text was updated successfully, but these errors were encountered: