android-custom-lint-rules icon indicating copy to clipboard operation
android-custom-lint-rules copied to clipboard

ANDROID_LINT_JARS environment doesn't work

Open gosp opened this issue 4 years ago • 2 comments

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 avatar Jun 10 '21 15:06 gosp

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

gosp avatar Jun 10 '21 15:06 gosp

This should be fixed in AGP 7.0.0-beta05

scott-pollom avatar Jul 09 '21 17:07 scott-pollom