Use Xlint:deprecation with android

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

    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

提交回复
热议问题