How to show compilation errors in android studio
Solution 1
There is a 'Problems' view in the project window:
Just click on the drop down (Android setting is default) and select 'Problems'. Not comparable to eclipse problems view tough...
Solution 2
Using F2
In addition to what the other answers say, you can find errors by pressing F2 or Shift+F2. This is useful when you can't see the where the red indicator is on the side bar.
Solution 3
There's "Messages" tab in Android Studio. Complilation errors and warning go there. You can select it by pressing alt+0 (⌘+0 in OS X - a shortcut to View|Tool Windows|Messages).
Solution 4
I was looking for the "Problems" view that you can see in Eclipse when building projects. For that, you can go to Analyze -> Inspect Code
Where is the warnings view in Android Studio?
and then I clicked on "Group by Severity" so that I could see the warnings and errors.
Solution 5
In the toolbar, go to Analyze -> Inspect Code
After That, you will have the Inspection Results
window with the detailed errors and warnings. see image:
Related videos on Youtube
iamcrypticcoder
Hi, This is MAHBUB. An Engineering student of Khulna University of Engineering and Technology. I am in CSE discipline. That's all about my academic info. I am a little developer both for web and desktop. C and C++ my favorite programming language as they are with me from my childhood. Currently I feel comfortable with PHP, CodeIgniter, Yii, Symfony, JQuery UI + AJAX, Javascript, MySql, JAVA SE, C# (.NET framework). I am very new in Stack Overflow. Hope I can contribute here as my ability. Thanks.
Updated on July 09, 2022Comments
-
iamcrypticcoder almost 2 years
I want to know how to show compilation errors in Android Studio. I tried the following one:
Android Studio: Where is the Compiler Error Output Window?
But it is showing another error:
javac: invalid target release: 1.8
Anybody who knows the actual solution please reply.
-
iamcrypticcoder about 11 years"javac: invalid target release: 1.8" is showing in the Messages tab. I need to see java compilation errors.
-
ernazm about 11 yearsNormally, there should be compilation errors too. You probably have jdk 1.8 which is (probably) not compatible with Android Studio. I'd try to switch to 1.7.
-
iamcrypticcoder about 11 yearsActually I'm working on android studio for last 2 months. Everything is okay. No problem to build if there is no compilation error. But if there are compilation errors "Messages Tab" shows "Compilation error bla bla..." but don't show errors. That's it. If jdk 1.8 is not compatible to Android Studio, is it impossible to build.
-
ernazm about 11 yearsWell the error message you posted says there's something wrong with javac you have, I think that's why you get no compilation errors. It's up to you whether to spend 5 minutes to try 1.7 jdk and see compilation errors or go as is.
-
Geeks On Hugs about 10 years⌘+0 in OS X - a shortcut to View|Tool Windows|Messages
-
hamena314 about 6 yearsAndroid Studio 3.1.1 ... seems as if the problems-view does not update automatically. Have to click on another tab and then back on
problems
to see new problems. If I fix a typo, it updates and removes the typo from the problems-view. -
Stephen M -on strike- about 6 yearsPretty worthless really. Both Eclipse and Netbeans handle this much better.
-
gunner_dev almost 6 yearsThis is pretty useful, but I wish Android Studio did this on the fly. For example, if you remove a function, a window to show all instances where that function is being called as errors.
-
Brett Sutton about 4 yearsThe absurdity is that the problems view is probably the second most accessed view and yet its hard to find.
-
Julian A. about 4 yearsI don't think this exists in AS anymore.
-
vLopez almost 3 yearsEclipse is better in all... I hate Android Studio with all my soul