且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何的Andr​​oid使用ant脚本来创建apk文件

更新时间:2023-09-26 13:20:52

检查Android开发者文档中的构建和运行从命令行的话题。你的的Andr​​oid创建项目假定工具,它应该是:

Check the android developers documentation in the Building and Running from the Command Line topic. Assumed you created your project with the android tool it should be:

ant release

该文档还描述了日食与ADT的方式

The documentation also describes the "eclipse with ADT" way

如果您第一次设置与Eclipse项目不是试图创建一个新的临时项目的android创建项目命令行命令,并采取的build.xml (和 build.properties + local.properties )从你现有的新项目。

If you first set up the project with eclipse than try to create a new temp project with the android create project command line command and take the build.xml (and build.properties + local.properties) from the new project for your existing one.