This problem occurs when compiling to release version, and the error prompt is as follows:
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
}
}
...
After adding according to the above prompt, this prompt is encountered in recompilation. Please try to solve it according to the following methods:
android {
buildTypes {
release {
//add
lintOptions {
checkReleaseBuilds false
abortOnError false
}
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
Similar Posts:
- Task :app:lintVitalRelease FAILED [How to Solve]
- Solution of no debuggable applications after Android monitor connects devices in Android studio
- Android Stdio Compile project report Error:Failed to find target with hash string ‘android-24
- How to Solve Failure [INSTALL_FAILED_OLDER_SDK]
- [Solved] Execution failed for task ‘:app:mergeDebugResources’
- [Solved] Duplicate class com.blankj.utilcode.BuildConfig found in modules classes.jar
- android unity Error: your hardware does not support this application,sorry!
- Call requires API level 4 (current min is 3) [How to Solve]
- Android Run App Warning: The application could not be installed: INSTALL_FAILED_TEST_ONLY
- To solve the version compatibility problem of support library: the support package has a red underline when it is introduced