2012年5月30日 星期三

Android build error in Java.

When compile Android source code, you have the below warning message and the build failed.

      Note: Some input files use or override a deprecated API.
      Note: Recompile with -Xlint:deprecation for details.`

Your best option would be to fix the use of deprecated APIs.
However, an option would be to add the @SupressWarnings("deprecation") annotation to the classes or methods that are using the deprecated APIs.

Reference:
http://docs.oracle.com/javase/6/docs/api/java/lang/SuppressWarnings.html

沒有留言:

張貼留言