Now I have to download and install the Android SDK and AVD Manager, and then install the APIs, tools through the UI. Is there a way to automate this process?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
UPDATE
The latest versions introduce
sdkmanager, a command line tool that allows you to view, install, update, and uninstall packages for the Android SDK.The
sdkmanagertool is provided in the Android SDK Tools package (25.2.3 and higher) and is located inandroid_sdk/tools/bin/.So, to update the packages run
To accept the licenses,
OLD ANSWER
(Please note: The
androidcommand is deprecated!)The closer you can get to automation probably is:
androidprovides these options for automatic updates:If you want to list which packages are available for installation you can use
And you’ll obtain an ordered list of packages, for example
Also you can limit the update only to a desired component if you use the
--filteroptionwhere component is one or more of
android list sdk(i.e. 1, also know as package index)Or can be one or more specific identifiers. For instance, if you just want to download a small set of specific packages, you could do this:
And you’ll just get the platform tools, API level 16 and support package JAR files. This is really handy if you’re building a build machine only and would have to pay for downloading all the extra stuff that you’ll never use.
To see the available options you can use –help, for example