Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

android

ant

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

like image 623
Rajeesh V Avatar asked Dec 18 '12 09:12

Rajeesh V


Video Answer


1 Answers

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
like image 100
Rajeesh V Avatar answered Sep 27 '22 16:09

Rajeesh V