Reputation:
In my Android Manifest
I have these value set:
<uses-sdk
android:minSdkVersion="14"
android:targetSdkVersion="19" />
But I keep getting errors like this:
Error:(7, 5) uses-sdk:minSdkVersion 9 cannot be smaller than version 10 declared in library …app\build\intermediates\exploded-aar\com.facebook.android\facebook\3.21.1\AndroidManifest.xml
Or at another place where I using this code:
newFragment.show(getFragmentManager(), "datePicker");
I get warning with red line that however when i run it runs fine:
`Call requires min API level 11 (current min is 9…`
Why is that when I have set minSdkVersion to way above than required?
Upvotes: 0
Views: 72
Reputation: 1620
The minSdk
errors that you are getting is because of the libraries included and not because of your app. For example facebook requires minSdk 9 which is declared in its manifest
Upvotes: -1
Reputation: 199825
If you are using Gradle, the minSdkVersion
declared in your build.gradle
file takes precedence over what is declared in your AndroidManifest.xml
- in fact, you can remove those lines from your manifest entirely.
Upvotes: 1