positivevibesonly
positivevibesonly

Reputation: 3147

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?

Upvotes: 9

Views: 5775

Answers (1)

Piyush Agarwal
Piyush Agarwal

Reputation: 25858

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.

Upvotes: 4

Related Questions