-
Notifications
You must be signed in to change notification settings - Fork 344
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
Build against Android 30 SDK Fails #410
Comments
I dont think this is a library issue, you are having an |
Ok, later I can try. But yesterday I tried also to build my app against sdk 31 ad it worked. This is strange, it seems like this attribute works only with latest SDK, and it should not be included in manifest when building for SDK 30. |
|
Yes, but this line comes from package |
So @pgiacomo69 are you sure you didn't set it up yourself in your manifest file? |
No way, this is my manifest:
|
@PieterAelse I can confirm the issue. Just create an example app, add reactive ble and you see it. What Android is doing is adding the following in the merged manifest: <uses-permission
android:name="android.permission.BLUETOOTH_SCAN"
android:usesPermissionFlags="neverForLocation" /> 🤦 |
Yessssss, now I was going crazy searching in other Packages |
I managed to make it work by adding
don't forgot to add @remonh87 If this is okay I can add it as doc in readme! |
But this should be used only with sdk<31? |
Yes should be used only with sdk<31 |
yep that works for me lets do this! thanks @Taym95 . 🎉 |
I have this same problem. What is the correct course of action? Is there a fix incoming? |
The solution in mentioned in the PR and in the comment above 👆 |
you should set Android SDK 31 |
@YellowShark mentioned:
Would this be a more fundamental solution? After all, flutter doctor asserts:
|
@farr64 not sure if I understand your question but you can build the latest version against both SDK31 and 30. In the readme we provided instructions how to do this. |
Yes, your instructions are clear. The question is what default SDK you should choose. Apparently, you chose SDK30. So, the question is why not choose SDK31 as your default. Thanks, @remonh87 |
Thanks @Taym95 |
Build against Android 30 SDK Fails
To Reproduce
Steps to reproduce the behavior:
The text was updated successfully, but these errors were encountered: