问题
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