【发布时间】:2021-02-12 00:48:36
【问题描述】:
在我的 react-native 应用程序中,为 android 构建我得到 lint 错误失败。我想忽略它,但添加推荐的脚本并不能解决问题,而且构建仍然失败
./gradlew build
* What went wrong:
Execution failed for task ':react-native-maps:lint'.
> Lint found errors in the project; aborting build.
Fix the issues identified by lint, or add the following to your build script to proceed with errors:
...
android {
lintOptions {
abortOnError false
}
}
...
并已将推荐添加到app/build.gradle
android {
compileSdkVersion rootProject.ext.compileSdkVersion
compileOptions {...}
defaultConfig {...}
splits {...}
signingConfigs {...}
buildTypes {...}
packagingOptions {...}
lintOptions {
abortOnError false
}
}
【问题讨论】:
-
这些设置不会影响第三方项目
标签: android react-native build.gradle gradlew react-native-maps