2010-05-17 54 views

回答

0

全力打造腳本位於YOUR_SDK_FOLDER /平臺/ SDKVERSION /模板/ android_rules.xml

您修改的build.xml這個文件的副本,並對其進行自定義。不知道是否會得到你想要的 - 但它是一個開始

<!-- Execute the Android Setup task that will setup some properties specific to the target, 
      and import the rules files. 
      To customize the rules, copy/paste them below the task, and disable import by setting 
      the import attribute to false: 
       <setup import="false" /> 

      This will ensure that the properties are setup correctly but that your customized 
      targets are used. 
     --> 
0

有一個java.compilerargs屬性默認$SDKDIR/tools/ant/build.xml文件,你可以在你的項目中ant.properties覆蓋,如:

java.compilerargs=-Xlint:unchecked -Xlint:deprecation