Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lint issues is shown in IDE but not shown on lint html result. #31

Open
yul2ya opened this issue Oct 8, 2020 · 4 comments
Open

lint issues is shown in IDE but not shown on lint html result. #31

yul2ya opened this issue Oct 8, 2020 · 4 comments

Comments

@yul2ya
Copy link

yul2ya commented Oct 8, 2020

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'

@glorinli
Copy link

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"

@jeffdeen
Copy link

jeffdeen commented Feb 1, 2021

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"

@glorinli
Copy link

glorinli commented Feb 1, 2021

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.

@jeffdeen
Copy link

jeffdeen commented Feb 3, 2021

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants