Gradle dagger lint: ignore by package

不想你离开。 提交于 2019-12-03 10:12:07
Mihaela Romanca

Found the answer here: https://android.googlesource.com/platform/tools/base/+/e6a5b9c7c1bca4da402de442315b5ff1ada819c7

adding in build.gradle in android section, lintOptions solved the issue for me:

android {
...

   lintOptions {
       disable 'InvalidPackage'
   }
}

adding the same ignore statement in lint.xml did not worked for me.

FYI, as of version 0.10.1 of the Android Gradle plugin this will no longer be necessary; lint will automatically ignore these issues found within Dagger: https://android-review.googlesource.com/#/c/93140/

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!