我要将一个Android库项目(在本例中为Beintoo)添加到我的Android应用中。这不是我的项目,而是外部库。但是,它没有提供build.xml文件。在Eclipse中构建可以正常工作,但是当我尝试使用ant构建我的应用程序时,出现以下错误:
BUILD FAILED
C:\Sandbox\MyProject\build.xml:110: The following error occurred while executing this line:
C:\Sandbox\MyProject\build.xml:41: The following error occurred while executing this line:
C:\Program Files (x86)\Android\android-sdk\tools\ant\build.xml:515: Invalid file: C:\Git\Beintoo-Android\beintoo-android-sdk\BeintooSDK\build.xml
完全正确。文件无效,因为它不存在。我不知道如何安全地添加它,也不确定这是否是一个好主意。
我已经学到不能简单地将库项目构建成jar文件。如何在Ant中使用该库项目来构建我的项目?