Skip to content
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

Android fails with Error: uses-sdk:minSdkVersion 16 cannot be smaller than version 17 declared in library [:flutter_inappbrowser] #14

Closed
alsocalledchris opened this issue Nov 14, 2018 · 9 comments

Comments

@alsocalledchris
Copy link

After adding the plugin to my project (using Flutter 0.11.3) Android builds fail with:

AndroidManifest.xml Error: uses-sdk:minSdkVersion 16 cannot be smaller than version 17 declared in library [:flutter_inappbrowser] ...

.. as the library might be using APIs not available in 16
Suggestion: use a compatible library with a minSdk of at most 16,
or increase this project's minSdk version to at least 17,
or use tools:overrideLibrary="com.pichillilorenzo.flutter_inappbrowser" to force usage (may lead to runtime failures)

@pichillilorenzo
Copy link
Owner

The minSdkVersion is already setted to at least 17! Just see the build.gradle file.

@alsocalledchris
Copy link
Author

@pichillilorenzo many thanks for your quick reply - I'm sure it is, however that was the error I got when adding the package and then trying to run it in my Android VM running Pie - I didn't do anything else and I haven't made any manual changes to the Android build files etc. Any ideas on how to fix this? Many thanks (super keen to get this plugin working as looks like it does exactly what we need 👍)

@alsocalledchris
Copy link
Author

Oh hang on - I need to update my AndroidManifest file don't I - so that has the higher version as requested by this plugin? Let me check...

@alsocalledchris
Copy link
Author

Yep, sorry - that was the problem. Thanks. Any chance the iOS build issue as a similar easy issue?

@velsa
Copy link

velsa commented Dec 16, 2018

@alsocalledchris
I have exactly the same problem, but I am not yet very experienced in Android development yet. Could you please explain what needs to be changed in AndroidManifest to set the higher version of the sdk library?

Thanks

@dchaofei
Copy link

@velsa try change file android/app/build.gradle minSdkVersion config

sorry! I can not speak English

@gc986
Copy link

gc986 commented Aug 20, 2020

Hi! The library description says that minSdk = 17, but the library manifest specifies 20. What is the current minimum version of the Sdk for the library?

@Markfgui675
Copy link

Hi! I've been this problem and got it. You need to change some configs in the build.gradle, inside the (android/app/build.gradle).

Then, you put:

defaultConfig{
    minSdkVersion 17
}

I hope helped. ;)

Copy link

github-actions bot commented Oct 8, 2024

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 8, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants