Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android: Compiler warnings in Android Studio

In android studio, when I build my project my event log says Compilation completed successfully with 102 warnings in 52 sec. Where can I see these compiler warnings? I know about Analyze -> Inspect Code which is not what I want. I also tried building my application using ant script with

<target name="-warn">
    <javac includeantruntime="false" srcdir="src/com/mobile" fork="true"  debug="true">
        <compilerarg line="-Werror -Xlint:all"/>
    </javac>
</target>

This shows some warnings when even fixed does not reduce the compilation warnings. What's the right way to do?

like image 301
LoveMeSomeFood Avatar asked Jan 22 '14 20:01

LoveMeSomeFood


1 Answers

These all errors will be visible in Event Log, placed on bottom right corner of Android Studio(I am running 0.4.2 currently).

Event Log

You can open Event log by double click on error messages as well.

For some messages description will also be available on Gradle Console, generally placed beside Event Log.

like image 155
Piyush Agarwal Avatar answered Oct 10 '22 23:10

Piyush Agarwal