Android ant script workaround?

旧城冷巷雨未停 提交于 2020-01-06 16:54:52

问题


It appears that, in the transition between the Android 1.1 sdk and 1.5, Google radically changed how ant scripts using AAPT can build Android projects. Previously they support args allowing developers to specify source, res, asset, and a manifest for a particular build.
Now, they seem to allow developers to specify only a single folder containing everything. While I could rewrite all our build scripts to work in this new way, I rather like our current system (as it doesn't require more hours of work that I don't have). To that end, has anyone figured out how to go back to the pre 1.5 method of ant script building? Further, has anyone found a rational reason for this change?


回答1:


use google there are already pre-written ant build scripts for android 1.5 if all else fails look up an android project on google code and browse svn to get a copy oof their build script..




回答2:


I wrote an article on how to use Ant with Android here: http://www.disgruntledrats.com/?p=27



来源:https://stackoverflow.com/questions/1446710/android-ant-script-workaround

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!