0
votes

In project structure I changed minSdkVersion from 14 to 2 but I got this error. What should I do?

Execution failed for task ':app:processDebugManifest'. Manifest merger failed : uses-sdk:minSdkVersion 2 cannot be smaller than version 14 declared in library [com.android.support:appcompat-v7:26.0.0-alpha1] C:\Users\Sav.android\build-cache\a2aea10c6b6f27b1c242d8ff3af373d56d229be1\output\AndroidManifest.xml Suggestion: use tools:overrideLibrary="android.support.v7.appcompat" to force usage

1
please check your uses-sdk:minSdkVersion 2 it must be greater than 14. This may be in gradle.build and manifest xmlUpendra Shah
Why it must be greater than 14? I want Android 1.1 to run my app.Zeltam
@IntelliJAmiya this isn't POB, this is a duplicate of this question. (The only one I could find that doesn't have answers related to as specific library, but generalizes it)user8063991

1 Answers

0
votes

Check the official doc of the support libraries:

Caution: Starting with Support Library release 26.0.0 (July 2017), the minimum supported API level across most support libraries has increased to Android 4.0 (API level 14) for most library packages

You are using the support libraries v26 and you can't use minSdkVersion 2 (and no reason to use it in September 2017 since minSdkVersion 14 covers more than 99% of the distribution)

enter image description here

Here the updated dashboard.