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

Highlighting stopped working after AS upgrade to 4.2.2

Open Lingviston opened this issue 3 years ago • 4 comments

I used AS 4.1.1. Imported the project and could see the custom rule highlighting. Then I updated to 4.2.2, reseted AS to its defaults and re-imported the project. Since that moment custom rule highlighting doesn't work. However, the issue is reported when I run ./gradlew :app:lint.

Besides, even with the OLD AS version the custom rule highlighting didn't work in MY project, but worked from the command line. What can be the reason of that? Any way I can debug it?

Lingviston avatar Jul 05 '21 07:07 Lingviston

I face the same issue when using AS 4.2.2. I've tried on macOS and on Windows, but I can't see highlighting. I don't see highlighting neither opening the project nor after running :app:lint command (but I can see errors in the console).

EvgenijPrav avatar Jul 05 '21 09:07 EvgenijPrav

I also experience this issue, the only fix that worked for me was to manually copy the generated jar file for the rule(checks.jar) into ~./android/lint. Doing this enabled the highlighting in AS (macos)

samuelprince77 avatar Jul 09 '21 20:07 samuelprince77

I also experience this issue, the only fix that worked for me was to manually copy the generated jar file for the rule(checks.jar) into ~./android/lint. Doing this enabled the highlighting in AS (macos)

Something is definitely broken. Lint integration must not be that unstable. I wish we had tools to debug what's going wrong. I reported the issue to Google. Could you please +1 it as well? https://issuetracker.google.com/issues/192776762

Lingviston avatar Jul 09 '21 22:07 Lingviston

+1

TanZhiL avatar Jul 26 '23 01:07 TanZhiL