Use Xlint:deprecation with android

后端 未结 5 2312
猫巷女王i
猫巷女王i 2021-02-19 10:57

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/Playlis         


        
5条回答
  •  迷失自我
    2021-02-19 11:55

    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
                    task.
                 - customize it to your needs.
    

    That means:

    1. Go to the $ANDROID_SDK_ROOT/tools/ant/main_rules.xml file and copy the "compile" target.

    2. Paste it into your build.xml file before the task.

    3. Then add the following element to the task:

      
      
    4. Likewise, you can add other compiler options, such as for unchecked operations:

      
      

提交回复
热议问题