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?
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.
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
Related
So this error message appears:
What went wrong:
Execution failed for task ':cloud_firestore:processDebugAndroidTestManifest'.
Manifest merger failed : uses-sdk:minSdkVersion 16 cannot be smaller than version 19 declared in library [com.google.firebase:firebase-firestore:24.1.2] C:\Users\DELL.gradle\caches\transforms-3\2bfce4225340219067212fe3be9c89b6\transformed\jetified-firebase-firestore-24.1.2\AndroidManifest.xml 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 19,
or use tools:overrideLibrary="com.google.firebase.firestore" to force usage (may lead to runtime failures)
I keep getting the same error eventho I applied the suggested changes. Another problem is that it doesn't save the changes. After applying the changes, I get the same error. Upon checking I see the same code before the change, as if it doesn't save the changes(Yes, I have saved the changes).
The build.gradle file:
minSdkVersion 23
targetSdkVersion 32
The Android.Manifest.xml file:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.google.firebase.firestore"
android:versionName="24.1.2" >
<uses-sdk
android:minSdkVersion="19"
android:targetSdkVersion="29" />
Like I said, I've applied the following changes: change minSdkVersion to 23, change targetSdkVersion to 32 and addes the tools:overrideLibrary line. But I keep getting the same error as thou nothing has changed. It goes back to this default code as shown above. Any help with this will be appreciated.
I have imported the sample for "Google Plus " from extras and I am facing the issue while building the project.
Could you please assist me to resolve this ?
android:configChanges="screenSize|smallestScreenSize"
These attributes were introduced in API level 13, so make sure your minSdkVersion is equal to 13 or higher. The same applies to your compileSdkVersion.
See also: Error string types not allowed at android:configChanges in manifest file
I am trying to change the transition from default to sliding in. I would like to keep my minSdkVersion to be 3 however overridePendingTransition wasn't added until API level 5 (Android 2.0).
I tried creating an integer to represent the SDK version and then only override the transition when in Android 1.6 or less via a simple if statement.
int sdkVersion = Integer.parseInt(Build.VERSION.SDK);
if(sdkVersion>=5)
overridePendingTransition(android.R.anim.slide_in_left, android.R.anim.fade_out);
Eclipse gives me a LINT warning stating "Call requires API level 5 (current min is 3): android.app.Activity#overridePendingTransition"
If I suppress this error and run it anyway it crashes on Android 1.6 or lower.
What is wrong with my code and how can I fix it? Any suggestions would be very appreciated!
In your android manifest file you have this ...
<uses-sdk
android:minSdkVersion="3"
android:targetSdkVersion="latest version" />
Change the min sdk version to 5 like show below
<uses-sdk
android:minSdkVersion="5"
android:targetSdkVersion="latest version" />
While running my application i am getting the below given warning and application went force close.
[2011-10-17 12:09:09 - LunarLander] WARNING: Application does not specify an API level requirement!
[2011-10-17 12:09:09 - LunarLander] Device API version is 9 (Android 2.3.1)
How to resolve this. I created another emulator with API level 10, then also i am getting the same error.
I am sure you forget to define the API level inside the AndroidManifest.xml file, define it as:
<uses-sdk android:minSdkVersion="5"
android:maxSdkVersion="10"
android:targetSdkVersion="8"/>
You should define the API level of your application in manifest file. I think you forgot to that. Launch the application according to that.
Just looking at that error you need to specify an API level for your application:
http://developer.android.com/guide/appendix/api-levels.html
I have created and published an application on the market...
However, on the market page it says: "Version required 1.0" while I know it needs at least version 2.0 (level 8) as it uses google maps..
I know that I have to include in the manifest file something like this:
I have tried to change the number 1 for another, but if I do it, the app crashes straight away with the following message:
android.view.InflateException: Binary XML file line #154: Error inflating class
Has anybody came across something similar?
Thanks
In your AndroidManifest.xml file, you need to include android:minSdkVersion and <uses-sdk> element. For example, I have this in my AndroidManifest.xml:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
android:minSdkVersion="4"
...
>
...
<uses-sdk android:minSdkVersion="4" android:targetSdkVersion="7"/>
...
</manifest>
Have a look here for more details: http://developer.android.com/guide/topics/manifest/uses-sdk-element.html