Hello. I have a problem in lime build android -release
I’m using VS Code. So, my error message:
Execution failed for task ':app:processReleaseManifest'.
> Manifest merger failed : uses-sdk:minSdkVersion 16 cannot be smaller than version 19 declared in library [com.google.android.gms:play-services-ads:21.1.0] C:\Gradle\gradle-6.7.1\bin\caches\transforms-2\files-2.1\9a3610c331ee4452c2502ea1d364ccf2\jetified-play-services-ads-21.1.0\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.android.gms.ads.impl" to force usage (may lead to runtime failures)
The minSdk version should not be declared in the android manifest file. You can move the version from the manifest to the defaultConfig in the build.gradle file
So, i’m trying to set minSdk in build.gradle file:
I’va found 2 log files. When i compile with “minSdkVersion 16 cannot be smaller than version 19” issue, they are empty.
When i set minSdk 28 in project.xml , and have “The minSdk version should not be declared in the android manifest file” issue, there is some mention of minSdk
first log file:
INJECTED from C:\projects\Lightseekers\export\android\bin\app\src\main\AndroidManifest.xml:13:2-70
tools:overrideLibrary
ADDED from [com.google.android.gms:play-services-ads:21.1.0] C:\Gradle\gradle-6.7.1\bin\caches\transforms-2\files-2.1\9a3610c331ee4452c2502ea1d364ccf2\jetified-play-services-ads-21.1.0\AndroidManifest.xml:23:9-49
android:targetSdkVersion
ADDED from C:\projects\Lightseekers\export\android\bin\app\src\main\AndroidManifest.xml:13:39-68
INJECTED from C:\projects\Lightseekers\export\android\bin\app\src\main\AndroidManifest.xml
INJECTED from C:\projects\Lightseekers\export\android\bin\app\src\main\AndroidManifest.xml
android:minSdkVersion
ADDED from C:\projects\Lightseekers\export\android\bin\app\src\main\AndroidManifest.xml:13:12-38
INJECTED from C:\projects\Lightseekers\export\android\bin\app\src\main\AndroidManifest.xml
MERGED from C:\projects\Lightseekers\export\android\bin\app\src\main\AndroidManifest.xml:13:12-38
INJECTED from C:\projects\Lightseekers\export\android\bin\app\src\main\AndroidManifest.xml