Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to show compilation errors in android studio

Tags:

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.

like image 649
iamcrypticcoder Avatar asked Jun 22 '13 16:06

iamcrypticcoder


People also ask

What is a compilation error?

Communication errors are errors that occur when Parallel ESSL encounters problems in communicating between processes—sending and receiving data or synchronizing operations. When a communication error occurs, at least one communication message is issued and the application program is terminated.

How do you fix a compilation error in Java?

Mismatched brackets If the brackets don't all match up, the result is a compile time error. The fix to this compile error is to add a leading round bracket after the println to make the error go away: int x = 10; System.


3 Answers

There is a 'Problems' view in the project window:

Project window - click on drop down and select 'Problems'

Just click on the drop down (Android setting is default) and select 'Problems'. Not comparable to eclipse problems view tough...

like image 52
Lonzak Avatar answered Sep 27 '22 21:09

Lonzak


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.

enter image description here

like image 10
Suragch Avatar answered Sep 28 '22 21:09

Suragch


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).

like image 5
ernazm Avatar answered Sep 26 '22 21:09

ernazm