uses-sdk:minSdkVersion 11 cannot be smaller than version 14 declared in library

当引入一个library时报uses-sdk:minSdkVersion 11 cannot be smaller than version 14 declared in library报这个错误。

这是因为AndroidManifest.xml文件中声明的

 minSdkVersion 14
和该项目下的build.gradle文件中声明的不一致造成的。把build.gradle中的改成AndroidManifest.xml即可,不需要管建议,当然了你引入的library里面AndroidManifest.xml和build.gradle中不能太低,所有module应该和主项目保持一致
 


该项目的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"]
    }

报错如下:


你可能感兴趣的:(uses-sdk:minSdkVersion 11 cannot be smaller than version 14 declared in library)