更新时间:2026-01-08 GMT+08:00

lint检查出错终止任务执行

问题现象

处理方法

可以在命令行中的gradle命令后加上-xlint参数,跳过lint检查。如:

/bin/bash ./gradlew assembleDebug -Dorg.gradle.daemon=false -d --stacktrace -xlint

gradle assembleDebug -Dorg.gradle.daemon=false -d --stacktrace --init-script /root/.gradle/init.gradle -xlint