问题
How do you download the Android support library via the command line?
For example:
echo y | android update sdk --no-ui --filter "android-19"
回答1:
echo y | android update sdk --no-ui --all --filter "extra-android-m2repository"
回答2:
android
command is deprecated now
You can use sdkmanager
instead like so:
sdkmanager --install "extras;android;m2repository"
回答3:
sdkmanager "extras;android;m2repository"
worked for me.
I ran in to the error: Warning: File /var/root/.android/repositories.cfg could not be loaded.
so I had to create that file before running the above command.
touch ~/.android/repositories.cfg
来源:https://stackoverflow.com/questions/23436564/downloading-the-android-support-library-from-command-line