Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Use Xlint:deprecation with android

So I almost always get some message like this when I'm compiling my android app:

[javac] Note: /home/kurtis/sandbox/udj/androidApp/src/org/klnusbaum/udj/PlaylistFragment.java uses or overrides a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.

How do I recompile with this option? Do I have to edit something in my build.xml?

like image 968
Kurtis Nusbaum Avatar asked Oct 07 '11 01:10

Kurtis Nusbaum


1 Answers

These properties can also be defined on the Ant command line, avoiding edits:

ant "-Djava.compilerargs=-Xlint:unchecked -Xlint:deprecation" debug

To enable all Lint warnings:

ant -Djava.compilerargs=-Xlint debug

like image 66
Joe Bowbeer Avatar answered Oct 12 '22 01:10

Joe Bowbeer