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

ANDROID_LINT_JARS environment doesn't work #50

Open
gosp opened this issue Jun 10, 2021 · 2 comments
Open

ANDROID_LINT_JARS environment doesn't work #50

gosp opened this issue Jun 10, 2021 · 2 comments

Comments

@gosp
Copy link

gosp commented Jun 10, 2021

download the latest code, and remove implementation project(':library') in app/build.gradle; and copy checks.jar to /tmp

osboxes# export JAVA_HOME=/usr/lib/jvm/adoptopenjdk-11-hotspot-amd64
osboxes# export ANDROID_LINT_JARS=/tmp/checks.jar 
osboxes# ./gradlew clean :app:build              

> Task :app:lintDebug

Scanning app: ...
No issues found.

> Task :app:copyDebugAndroidLintReports
Copying lint SARIF report to /home/osboxes/Documents/android-custom-lint-rules/lint-results.sarif

BUILD SUCCESSFUL in 3s
76 actionable tasks: 74 executed, 2 up-to-date
@gosp
Copy link
Author

gosp commented Jun 10, 2021

It works after I downgrade gradlePluginVersion from 7.0.0-alpha10 to 4.2.1; lintVersion from 30.0.0-alpha10 to 27.2.1

@scott-pollom
Copy link

This should be fixed in AGP 7.0.0-beta05

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

2 participants