Bob*_*ool 0 java android android-studio-3.0
我在Android Studio v3.1.1中开发了一个android应用程序。
我的项目已经完成,我想从Build-> Generate Build Apk 生成apk,但第二次显示以下错误:Logcat
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
}
}
...
Run Code Online (Sandbox Code Playgroud)
我该如何解决?请帮我
lintOptions在您应用的中添加以下代码块build.gradle。
android {
defaultConfig {
...
}
buildTypes {
...
}
lintOptions {
// Returns whether lint should be quiet (for example, not write informational messages such as paths to report files written)
quiet true
// Whether lint should set the exit code of the process if errors are found
abortOnError false
// Returns whether lint will only check for errors (ignoring warnings)
ignoreWarnings true
// Returns whether lint should check for fatal errors during release builds. Default is true.
// If issues with severity "fatal" are found, the release build is aborted.
checkReleaseBuilds false
}
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
3824 次 |
| 最近记录: |