此問(wèn)題發(fā)生在編譯為 release 版本時(shí),出現(xiàn)錯(cuò)誤提示如下:
Lint found fatal errors while assembling a release target.
To proceed, either fix the issues identified by lint, or modify your build script as follows:
...
android {
lintOptions {
checkReleaseBuilds false
// Or, if you prefer, you can continue to check for errors in release builds,
// but continue the build even when errors are found:
abortOnError false
}
}
...
信他你就輸了货矮!
如果你真的去 build.gradle(app) 的 android{...} 中按照上述提示添加后南蹂,重新編譯還遇到這個(gè)提示例衍,請(qǐng)嘗試按照以下方法解決:
android {
buildTypes {
release {
//在這里添加:
lintOptions {
checkReleaseBuilds false
abortOnError false
}
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
搞定降宅。
此問(wèn)題多發(fā)生在老項(xiàng)目用新版本IDE編譯時(shí)艘狭,具體原因待查挎扰。