Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to add "android.library=true" with the "android update" command

I want to build an Android project from command-line and want to add the android.library=true flag to the project.properties. I also want to do it with he the android command from the sdk and NOT add it manually to the file, because file- and property-names could change.

the command android update lib-project -p PATH does not add this flag anymore.

the command android create lib-project ... does "add" this flag, but overrides some files like string resources

So my question is: it is possible with the android tool to make a project.properties that has this android.library flag set to true, and doesn't do much more?

What is the difference between android update project and android update lib-project beside I cannot use some flags in lib-project?

like image 555
Rafael T Avatar asked Nov 12 '22 10:11

Rafael T


1 Answers

From http://developer.android.com/tools/projects/projects-cmdline.html#UpdatingLibraryProject

With android update lib-project you can only update the build target and the path. Check your command This is the syntax to update the lib-project

android update lib-project \ --target \ --path path/to/your/project

you are trying to update with just -p

Answering your second question the command name itself tells the answer that "android update project" is used to update the projects which is not a library project but a normal project. whereas "android update lib-project" is used to update the library projects.

like image 106
flexdroid Avatar answered Nov 15 '22 11:11

flexdroid