Use Xlint:deprecation with android

后端 未结 5 2310
猫巷女王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:56

    It looks like you should just be able to specify the option in either build.properties or ant.properties in the root of your project folder. I tried this and it didn't seem to work. I wanted to avoid editing my build.xml file as this adds complication later if you need to update your project. However, I was unable to find a way around it. However, rather than copying the whole compile target I added:

    
    

    just before the import line at the bottom of the file.

提交回复
热议问题