Android Studio: Viewing Warnings and Lint

846 views
Skip to first unread message

Malcolm Evershed

unread,
Mar 19, 2015, 8:02:10 PM3/19/15
to adt...@googlegroups.com
This documentation says "configured lint and other IDE inspections run automatically whenever you compile your program", but when I tried this, no warnings are displayed. Am I looking in the wrong place, or is this a doc bug, or an Android Studio bug? Should I file a bug?

For example, in Eclipse, in a new project, if I type "int x = MediaCodec.BUFFER_FLAG_KEY_FRAME;" and hit Save, the Problems View shows an Android Lint Problem about the field requiring SDK 21, and a Java Problem about a local variable being unused.

In Android Studio 1.1, I enter the same code, hit Save, hit "Make Project" and the Messages and Gradle Console tool windows don't show the expected warnings. However, if I press F2 (Next Highlighted Error) and I hover over the cursor, the warning is shown in a popup. So the warnings are being found, but there is no overall UI indication (other than text color). How do I get an auto-updating list view? I can run Analyze -> Inspect Code, but that is manual, non-auto-updating, slow (which doesn't make sense considering that it already ran because F2 works) and not the 'automatically' that the docs describe.

Thanks.

Malcolm Evershed

unread,
Apr 23, 2015, 7:17:00 PM4/23/15
to adt...@googlegroups.com
After using Android Studio for a month, it is a real shame that it doesn't have a working Problems View. This interview with Tor pretty much explains (at least at the outset) why: the IntelliJ/Android Studio Problems View sounds like it works by using an internal compiler, but since Android Studio only builds with Gradle, the internal compilation (and thus the Problems View) really wouldn't work. So I can understand the reason, but as an end-user, it's really disappointing after experiencing the Eclipse Problems View.

There's already a bug in AOSP about the lack of Problems View in Android Studio.

Thanks.
Reply all
Reply to author
Forward
0 new messages