【Android】Error:Execution failed for task ':app:lint'

时间:2021-12-12 18:37:51

详细信息如下:

Error:Execution failed for task ':app: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
      }
  }
  ...

其实解决方法已经提示出来了,如图所示:
【Android】Error:Execution failed for task ':app:lint'

在 app 下的 build.gradle 中修改下即可,如下所示:

android {
    ...
    lintOptions {
        abortOnError false
    }
}