清单合并 failed:uses-sdk:minSdkVersion 2 不能小于版本 14 在支持库 v26 的库中声明
Manifest merger failed:uses-sdk:minSdkVersion 2 cannot be smaller than version 14 declared in library with support libraries v26
在项目结构中,我将 minSdkVersion 从 14 更改为 2,但出现此错误。我该怎么办?
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
检查 支持库的 official doc:
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
您正在使用支持库 v26,您不能使用 minSdkVersion
2(并且没有理由在 2017 年 9 月使用它,因为 minSdkVersion
14 涵盖的内容超过 99分布百分比)
在项目结构中,我将 minSdkVersion 从 14 更改为 2,但出现此错误。我该怎么办?
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
检查 支持库的 official doc:
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
您正在使用支持库 v26,您不能使用 minSdkVersion
2(并且没有理由在 2017 年 9 月使用它,因为 minSdkVersion
14 涵盖的内容超过 99分布百分比)