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?
Yes, per the statement below in the build.xml file, if you want to …
- Customize only one target: - copy/paste the target into this file, *before* the <setup/> task. - customize it to your needs.That means:
Go to the $ANDROID_SDK_ROOT/tools/ant/main_rules.xml file and copy the “compile” target.
Paste it into your build.xml file before the <setup/> task.
Then add the following element to the task:
Likewise, you can add other compiler options, such as for unchecked operations: