Android ant 脚本解决方法? [英] Android ant script workaround?

查看:28
本文介绍了Android ant 脚本解决方法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

看来,在 Android 1.1 sdk 和 1.5 之间的过渡中,Google 从根本上改变了使用 AAPT 的 ant 脚本构建 Android 项目的方式.以前,它们支持 args,允许开发人员为特定构建指定源、资源、资产和清单.
现在,他们似乎只允许开发人员指定一个包含所有内容的文件夹.虽然我可以重写我们所有的构建脚本以这种新方式工作,但我更喜欢我们当前的系统(因为它不需要我没有的更多工作时间).为此,有没有人想出如何回到 1.5 版之前的 ant 脚本构建方法?此外,有没有人找到这种变化的合理原因?

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?

推荐答案

使用 google 已经有针对 android 1.5 的预先编写的 ant 构建脚本,如果所有其他方法都失败,请在 google 代码上查找 android 项目并浏览 svn 以获取副本他们的构建脚本..

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..

这篇关于Android ant 脚本解决方法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆