简体   繁体   English

包括一些库项目后,通过命令行构建android项目的apk失败

[英]building apk of an android project via command line fails after including some library projects

Building the apk for my project fails because ant is searching for the build.xml for the library nineoldandroid. 为我的项目构建apk失败,因为蚂蚁正在搜索nineoldandroid库的build.xml。

here's the shell script http://pastebin.com/fhcj9GKG 这是外壳程序脚本http://pastebin.com/fhcj9GKG

Tried finding for a way to create build.xml for the library project but failed. 尝试寻找一种为图书馆项目创建build.xml的方法,但失败了。 I also tried ant clean, android update and also tried doing it on both windows and linux, computer restart,update adt and other methods but failed to fix the problem. 我也尝试过蚂蚁清理,android更新,也尝试在Windows和Linux上进行此操作,计算机重启,更新adt和其他方法,但未能解决问题。 This error appeared after including library projects on my main project. 在我的主项目中包含图书馆项目后,出现此错误。

note : im using adt's ant, i also tried building it without running adt just in case there is a conflict when using ant by two processes but same error appears. 注意:我正在使用adt的ant,我也尝试在不运行adt的情况下构建它,以防万一两个进程使用ant时发生冲突,但出现相同的错误。

Any idea how to fix this? 任何想法如何解决这个问题?

Thanks! 谢谢!

控制台截图

This will create the missing build.xml: 这将创建缺少的build.xml:

cd /home/jisidro/ws/temp/NineOldAndroid/
path/to/sdk/tools/android update project --path /home/jisidro/ws/temp/NineOldAndroid/ --subprojects

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM