build and run android project having a subproject in command line using ant debug

浪子不回头ぞ 提交于 2020-01-01 09:39:52

问题


I am trying to buil an android project from command line. My android project has a sub project inside my main android project. When I run the ant debug command it showing error in building classes as not found the library classes from the subproject. So I think the sub project is not included correctly, we need to execute some command for that.

Please help, thanks in advance


回答1:


I got the answer from Android official doc:

android update lib-project --target 3 --path ZBarScanner-master/ZBarScannerLibrary 
android update project --name android_app --path . --library ZBarScanner-master/ZBarScannerLibrary 

First we need to update the library project and then update the main project. Both should be created before doing the update. Then do:

ant clean 
ant debug


来源:https://stackoverflow.com/questions/13929734/build-and-run-android-project-having-a-subproject-in-command-line-using-ant-debu

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!