How to add "android.library = true" using the "android update" command

I want to create an Android project from the command line and I want to add a flag android.library=trueto project.properties. I also want to do this with the command androidfrom sdk and DO NOT manually add it to the file, because the file names and properties can change.

the team android update lib-project -p PATHno longer adds this flag.

the command android create lib-project ...adds this flag, but overrides some files, such as string resources

So my question is: is it possible to use the tool androidto create project.properties for which this android.library flag is set to true and does not do more?

What is the difference between android update projectand android update lib-projectnext to I cannot use some flags in a lib project?

+5
source share
1 answer

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

With lib-project for Android, you can update the build target and path. Check your command. This is the syntax for updating lib-project.

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

which you are trying to update, just -p

, , " " , , . "- lib-project" .

+1

All Articles