Android SDK示例+&引用;gradle build“;错误:org.gradle.api.tasks.TaskExecutionException:任务的执行失败
使用“gradle build--stacktrace”命令构建Android SDK示例(Android-19/ui/CustomChoiceList):Android SDK示例+&引用;gradle build“;错误:org.gradle.api.tasks.TaskExecutionException:任务的执行失败,android,android-gradle-plugin,Android,Android Gradle Plugin,使用“gradle build--stacktrace”命令构建Android SDK示例(Android-19/ui/CustomChoiceList): 有人能详细说明错误的原因吗?如果Gradle检测到Lint问题,它现在会自动中止构建。Lint是一个用于分析代码中可能出现的问题的实用工具,这些问题可能被视为警告,而不是编译错误 只需将以下内容添加到“build.gradle”文件中,Lint问题将不再停止构建 android { lintOptions {
有人能详细说明错误的原因吗?如果Gradle检测到Lint问题,它现在会自动中止构建。Lint是一个用于分析代码中可能出现的问题的实用工具,这些问题可能被视为警告,而不是编译错误 只需将以下内容添加到“build.gradle”文件中,Lint问题将不再停止构建
android {
lintOptions {
abortOnError false
}
}
修复此处报告的错误:
Wrote HTML report to file:/sda3/android-sdk-linux/samples/android-19/ui/CustomChoiceList/CustomChoiceListSample/build/lint-results.html
Wrote XML report to /sda3/android-sdk-linux/samples/android-19/ui/CustomChoiceList/CustomChoiceListSample/build/lint-results.xml
或防止lint检测到错误时gradle停止:
android {
// ...
// your stuff
// ...
lintOptions {
abortOnError false
}
}
有没有一种方法可以将其添加到顶级脚本中,以便将其注入子项目,类似于下面的问题:?如何添加以及在何处添加?
/build.gradle
android {
// ...
// your stuff
// ...
lintOptions {
abortOnError false
}
}