wallpaper app with admob and push notification - got errors - android

Error:Execution failed for task ':app:processDebugManifest'.
Manifest merger failed : uses-sdk:minSdkVersion 14 cannot be smaller than version 15 declared in library [com.onesignal:OneSignal:3.8.1] G:\gradle-4.4.1\bin\caches\transforms-1\files-1.1\OneSignal-3.8.1.aar\4992f150d9197af17fab12064aa2676a\AndroidManifest.xml as the library might be using APIs not available in 14
Suggestion: use a compatible library with a minSdk of at most 14,
or increase this project's minSdk version to at least 15,
or use tools:overrideLibrary="com.onesignal" to force usage (may lead to runtime failures)

As the error message states you can either bump your minSdk to 15 or use and older version of OneSignal that has minSdk set to 14

Related

How can i Build My Project Without Manifest Merger Error

Manifest merger failed : uses-sdk:minSdkVersion 15 cannot be smaller than version 16 declared in library [com.google.firebase:firebase-auth:19.3.0] C:\Users\OM.gradle\caches\transforms-1\files-1.1\firebase-auth-19.3.0.aar\8ec2095a0209a5b3eda53b7dd05e2414\AndroidManifest.xml as the library might be using APIs not available in 15
Suggestion: use a compatible library with a minSdk of at most 15,
or increase this project's minSdk version to at least 16,
or use tools:overrideLibrary="com.google.firebase.auth" to force usage (may lead to runtime failures)
Change the minSdk to 16 in the manifest

When I try to add firebase push notification in the android studio then it shows an error

When I try to add firebase push notification in the android studio then it shows an error.
Manifest merger failed : uses-sdk:minSdkVersion 15 cannot be smaller than version 16 declared in library [com.google.firebase:firebase-iid:19.0.0] C:\Users\golam\.gradle\caches\transforms-2\files-2.1\856a947c1a9c6ebc4d2fc0c2fb4dbece\firebase-iid-19.0.0\AndroidManifest.xml as the library might be using APIs not available in 15
Suggestion: use a compatible library with a minSdk of at most 15,
or increase this project's minSdk version to at least 16,
or use tools:overrideLibrary="com.google.firebase.iid" to force usage (may lead to runtime failures)
firebase library com.google.firebase:firebase-iid:19.0.0 is supported minimum
uses-sdk:minSdkVersion 16 but your log shows you have 15 so wou need to change the minsdk level from 15 to 16 or use the library which support the uses-sdk:minSdkVersion 15
Just downgrade your firebase version or upgrade your min sdk to 16 instead of 15

Android Studio 3.4 Manifest merger failed : uses-sdk:minSdkVersion 1 cannot be smaller than version 14

after upgrading Android Studio to version 3.4 my project sync reports an error:
ERROR: Manifest merger failed : uses-sdk:minSdkVersion 1 cannot be smaller than version 14 declared in library [androidx.legacy:legacy-support-v4:1.0.0] C:\Users\pecana\.gradle\caches\transforms-2\files-2.1\0b6817155f227f1df719b12aa7dc1519\AndroidManifest.xml as the library might be using APIs not available in 1
Suggestion: use a compatible library with a minSdk of at most 1,
or increase this project's minSdk version to at least 14,
or use tools:overrideLibrary="androidx.legacy.v4" to force usage (may lead to runtime failures)
I can by the way build the APK and run the application correctly (but only without instant run active). I tried to add the
<uses-sdk tools:overrideLibrary="androidx.legacy.v4"/>
to the main AndroidManifest.xml but the error still occurs.
Any idea on how to fix this ?
Thank you
As the error suggested you can also increase your project's minSdk version to 14 or above.
Go to your build.gradle(Module app) file and add the minimum SDK version like this:
android {
compileSdkVersion 28
defaultConfig {
minSdkVersion 14 or above here
}
}

ionic android build fail about sdk version

I tried to
install android sdk
remove android platform and re add
remove plugin
set minSdkVersion to 19 in config.xml
but i still have a problem when building this Android project.
I ran this command
'ionic cordova build android'
and i got this error message
----------
:app:createDebugCompatibleScreenManifests UP-TO-DATE
/Users/dev_pjw/Documents/workspace/bmdevs/tgc-clinet-app/platforms/android/app/src/main/AndroidManifest.xml:28:5-74 Error:
uses-sdk:minSdkVersion 16 cannot be smaller than version 19 declared in library [:CordovaLib] /Users/dev_pjw/Documents/workspace/bmdevs/tgc-clinet-app/platforms/android/CordovaLib/build/intermediates/manifests/full/debug/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="org.apache.cordova" to force usage (may lead to runtime failures)
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:processDebugManifest'.
> Manifest merger failed : uses-sdk:minSdkVersion 16 cannot be smaller than version 19 declared in library [:CordovaLib] /Users/dev_pjw/Documents/workspace/bmdevs/tgc-clinet-app/platforms/android/CordovaLib/build/intermediates/manifests/full/debug/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="org.apache.cordova" to force usage (may lead to runtime failures)
----------

Manifest Merger Failed Error: Gradle Version Issue

I am trying to create a Tinder-style swipe left/swipe right feature. But when I added the dependencies into my code I got this manifest error:
Manifest merger failed : uses-sdk:minSdkVersion 15 cannot be smaller than version 16 declared in library [com.mindorks:placeholderview:0.7.1] /Users/cassandracampbell/.gradle/caches/transforms-1/files-1.1/placeholderview-0.7.1.aar/e4aa1d0fe45df90e4bd68b2aac33a24e/AndroidManifest.xml as the library might be using APIs not available in 15
Suggestion: use a compatible library with a minSdk of at most 15,
or increase this project's minSdk version to at least 16,
or use tools:overrideLibrary="com.mindorks.placeholderview" to force usage (may lead to runtime failures)
How can I fix this?
You are using this library com.mindorks:placeholderview:0.7.1 whose minimum sdk is 16. So in order to use this library your minimum sdk should also be 16. Just change the minimum sdk in your gradle to 16 and it will work.
According to error message:
Manifest merger failed : uses-sdk:minSdkVersion 15 cannot be smaller than version 16 declared in library [com.mindorks:placeholderview:0.7.1]
You need to change your minSdkVersion 14 to 16 in your app/build.gradle . I.e.
defaultConfig {
...
minSdkVersion 16
...
}

Categories

Resources