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?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With