android-custom-lint-rules
android-custom-lint-rules copied to clipboard
lint issues is shown in IDE but not shown on lint html result.
I used android-studio-3 folder. And I found lint issue on IDE. But when I ran ./gradlew lint, below logs are shown. Issues that I saw on IDE are not included on html result. Please help to check why.
> Task :library:lint Ran lint on variant release: 0 issues found Ran lint on variant debug: 0 issues found
Environment lintVersion = '26.5.0' classpath 'com.android.tools.build:gradle:3.5.0'
Same issue when using android-studio-4 folder.
my lint version is: lint_version = '27.1.0' classpath "com.android.tools.build:gradle:4.1.1"
Same issue when using android-studio-4 folder.
my lint version is: lint_version = '26.5.3' classpath "com.android.tools.build:gradle:3.5.3"
I found out the solution, the key is that we should use same AGP version as the project we are going to lint. for example, my App gradle plugin version is 4.0.1, so I change my lint project AGP to 4.0.1, and lint version to 27.0.1.
lint version should be AGP version + 23.
I found out the solution, the key is that we should use same AGP version as the project we are going to lint. for example, my App gradle plugin version is 4.0.1, so I change my lint project AGP to 4.0.1, and lint version to 27.0.1.
lint version should be AGP version + 23.
Thanks! It worked!