Skip to content

ANDROID_LINT_JARS environment doesn't work #50

Open
@gosp

Description

@gosp

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

Activity

gosp

gosp commented on Jun 10, 2021

@gosp
Author

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

scott-pollom commented on Jul 9, 2021

@scott-pollom

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @gosp@scott-pollom

        Issue actions

          ANDROID_LINT_JARS environment doesn't work · Issue #50 · googlesamples/android-custom-lint-rules