uses-sdk:minSdkVersion 11 cannot be smaller than version 14 declared in library
2017-07-08 13:14
701 查看
当引入一个library时报uses-sdk:minSdkVersion 11 cannot be smaller than version 14 declared in library报这个错误。
这是因为AndroidManifest.xml文件中声明的
该项目的build.gradle
build.gradle中
报错如下:
这是因为AndroidManifest.xml文件中声明的
minSdkVersion 14和该项目下的build.gradle文件中声明的不一致造成的。把build.gradle中的改成AndroidManifest.xml即可,不需要管建议,当然了你引入的library里面AndroidManifest.xml和build.gradle中不能太低,所有module应该和主项目保持一致
<uses-sdk android:minSdkVersion="14" android:targetSdkVersion="21" />
该项目的build.gradle
build.gradle中
android { compileSdkVersion 19 buildToolsVersion "25" defaultConfig { applicationId 'com.xxx.ccccol' minSdkVersion 14 targetSdkVersion 25 versionCode 254 versionName "2.5.4" manifestPlaceholders = [UMENG_CHANNEL_VALUE: "iybrtool"] }
报错如下:
相关文章推荐
- Android Studio常见问题--uses-sdk:minSdkVersion 11 cannot be smaller than version 15 declared in library
- uses-sdk:minSdkVersion 14 cannot be smaller than version 21 declared in library
- Android Studio常见问题 -- uses-sdk:minSdkVersion 8 cannot be smaller than version 9 declared in library
- Android -- uses-sdk:minSdkVersion 10 cannot be smaller than version L declared in library com.android.support:appcompat-v7:21.0.0-rc1
- Manifest merger failed : uses-sdk:minSdkVersion 9 cannot be smaller than version 10 declared in library
- uses-sdk:minSdkVersion 15 cannot be smaller than version 16 declared in library
- Android Studio常见问题 -- uses-sdk:minSdkVersion 8 cannot be smaller than version 9 declared in library
- Android Studio编译报错:sdk:minSdkVersion 1 cannot be smaller than version 7 declared in library
- Manifest merger failed : uses-sdk:minSdkVersion 15 cannot be smaller than version 21 declared in li
- 关于Manifest merger failed : uses-sdk:minSdkVersion 8 cannot be smaller than version 16 declared in lib
- 关于Manifest merger failed : uses-sdk:minSdkVersion 8 cannot be smaller than version 9 declared in lib
- Manifest merger failed : uses-sdk:minSdkVersion 8 cannot be smaller than version 9 declared
- Manifest merger failed : uses-sdk:minSdkVersion 8 cannot be smaller than version
- Manifest merger failed : uses-sdk:minSdkVersion 1 cannot be smaller than version 7
- Android Studio报错:Manifest merger failed : uses-sdk:minSdkVersion 1 cannot be smaller than version
- Android Studio 中Manifest merger failed : uses-sdk:minSdkVersion 1 cannot be smaller than version 7
- uses-sdk tools:overrideLibrary uses-sdk:minSdkVersion 1 cannot be smaller than version 9
- 解决 Android Studio : minSdkVersion 8 cannot be smaller than version L
- 解决 Android Studio : minSdkVersion 8 cannot be smaller than version L
- Manifest merger failed : uses-sdk:minSdkVersion 16 cannot be sma