Build and run an android project having a subproject on the command line using ant debug

I am trying to build an android project from the command line. My android project has a subproject inside my main android project. When I run the ant debugging command, it shows an error when building classes, since library classes from the subproject were not found. Therefore, I think that the sub-project is not included correctly, we need to execute some command for this.

Please help, thanks in advance

+7
source share
1 answer

I got a response from an Android white paper:

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 must be created before upgrading. Then do:

 ant clean ant debug 
+9
source

All Articles