Today, I upgraded Android Studio and found that the code can run, but there is an error in the release package. The error 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
}
}
The error provides us with the above two kinds of repair way of version
a: repair
Lint to check out the problem 2: in the build of the module. The gradle add the following code, so you can ignore these problems, the normal packaging
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
}
}
The second method is convenient, but it’s not recommended to ignore the problem, according to the website
In addition to testing the Android application to make sure it meets its functional requirements, you must also make sure that the code has no structural problems. Disorganized code affects the reliability and efficiency of an Android application and makes it harder to maintain the code.
Lint check problems is to prevent the above problems, so the way we use the following method to solve this problem
in the error above only hint Lint has a problem But didn’t tell me about any problem. Can use the android studio to see these errors
in the menu bar
can complete inspection can also specify folder check, click OK to wait for a while can see the test result, and then the error of the test results to solve can normal packing up
Reference links
https://developer.android.google.cn/studio/write/lint?hl=zh-CN
Read More:
- The solution of Android package error
- Change API level Android studio
- Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES: … has no certificates at entry AndroidManifest.xml]
- Solve the problem of permission after flutter package_ Handler failure
- How to Fix Android Error:This Gradle plugin requires Studio 3.0 minimum
- Perfect solution Error:Execution failed for task ‘: APP:transformClassesWithDexForDebug ‘… Problem
- E / Art: failed sending reply to debugger: a solution to broken pipe
- Android studio disable install run
- Session ‘app’: Error Installing APKs
- AndroidStudio sync failed solution
- Error in Cordova project execution command after Android studio upgrade: could not find gradle wrapper within Android SDK
- How to Fix Unknown error: Unable to build: the file dx.jar was not loaded from the SDK folder!
- ERROR: Unsupported method: AndroidProject.getVariantNames().
- NPM run build failed to package err! Missing script: build
- Flutter – iOS: Command /bin/sh failed with exit code 255
- How to Fix com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource linking failed
- Solve the error when installing apk after compiling Android Studio: Error while Installing APK
- Solve gradle project refresh failed
- Conversion to dalvik format failed with error 1 solution
- How to solve the problem that the console window disappears in a flash after visual studio 2017 runs