Skip Eclipse validation of build.xml

后端 未结 5 742
暖寄归人
暖寄归人 2021-02-06 07:42

I\'ve followed the steps given in the Android Developer Blog to generate a build.xml for building releases for an Android Application. I need to do a custom compiling so I have

5条回答
  •  忘掉有多难
    2021-02-06 08:04

    I have figured out a much better solution to the problem of eclipse not finding build targets from the imported/included projects. First of all, upgrade to the r14 sdk. Revision 14 uses only a build.xml file from the ${sdk.dir}/tools/ant directory

    At the bottom of the build.xml file within your own project, you'll see an import statement that looks like this:

    
    

    Change this statement to

    
    

    Then from your project, you can reference those target with

    
    

    Also note that now they have pre-compile/pre-build tasks that will be called before compiling. (checkout the full build.xml to see exactly when they are called). You can use these as hooks to do some work before compiling without overriding the original tasks.

提交回复
热议问题