Android Studio Gradle build failed 记录:
Required com.android.build.api.attributes.BuildTypeAttr 'lintOptions' and found incompatible value 'debug'
原配置
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
加上lintOptions,就完了
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
lintOptions {
abortOnError false
}
}
另外:
:app 加了
lintOptions
而其他module 没有加 lintOptions , 故,去掉:app里的lintOptions 也可以。 build 成功。