本文介绍了构建Android图书馆项目使用Ant的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法建立我的Andr​​oid库项目与蚂蚁。当我尝试运行蚂蚁发布,它说目标释放没有项目MyProject的存在

然后我认为或许是库没有得到建立与发布/调试,所以我开始使用蚂蚁编译,它似乎工作。然后我手动压缩文件夹使用Java的压缩工具,并改名为.apk文件。我猜这是错误的方式做到这一点。

谁能告诉我如何使用Ant来构建一个Android库项目?


解决方案

Correct.

Also correct.

You typically do not build an Android library project. You build other projects that reference the Android library project. Creating projects that reference the library project, for use with Ant, is covered in the Android documentation. More information about the role of Android library projects can also be found in the Android documentation.

这篇关于构建Android图书馆项目使用Ant的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-13 07:38