lint-sample icon indicating copy to clipboard operation
lint-sample copied to clipboard

Android Studio does not show code alert in IDE.

Open wkmcyz opened this issue 4 years ago • 4 comments

Hi , this is a great job for you to make this sample. I followed the instructions in your article. But no red lines under error code like your screenshots.

I can see the custom rules in the output report of gradle lintDebug , which means the custom rule is adapted correctly.

Hope that you can shed a light on this . :)

wkmcyz avatar Dec 15 '20 03:12 wkmcyz

I'd like to hear about this too

dmytroKarataiev avatar Mar 17 '21 15:03 dmytroKarataiev

If you run his project - Android Studio 4.1 doesn't highlight it too.

dmytroKarataiev avatar Mar 17 '21 15:03 dmytroKarataiev

I think it only works when you include it as a separate library

dmytroKarataiev avatar Mar 17 '21 15:03 dmytroKarataiev

Played a bit more with this and it seems like when you update Kotlin to 1.4+ then you have to explicitly add it as a dependency to the library and then the highlight stops working.

dmytroKarataiev avatar Mar 17 '21 16:03 dmytroKarataiev