How to disable lint abortOnError in Android Gradle Plugin from top level of multi project directory
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I have a top level Android Gradle project. There are multiple subprojects nested below this projects (sometimes they are 2 level deep) i.e: top level project | project1 vendor libraries | lib1 lib2 lint is aborting my build in some of the libraries projects. I can edit each individual library project's build.gradle to fix the problem with android { lintOptions { abortOnError false } } However, I would prefer the following code in the top level build.gradle script: subprojects { afterEvaluate { if ( getPlugins (). hasPlugin (