Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to update SDK in Android Studio in the background

Today I'm trying to update the SDK in Android Studio on my Ubuntu, and looking for the menu that make the download process running in the background. So I want to download the SDK and continue to work in Android Studio.

As far as I can remember Eclipse has menu that can download in the background task so I can continue work while downloading.

I've tried to find the option in settings but I could not find it, and on the downloading GUI has no option to download it in the background, here is my screenshot: enter image description here

Is anyone having the same issue here? How can I resolve this?

like image 446
Gujarat Santana Avatar asked Apr 12 '16 23:04

Gujarat Santana


3 Answers

You can go to tools -> android -> sdk manager and click on Launch stand alone sdk manager hyperlink. This will open sdk manager outside android studio, select the packages and download. You can continue to work on android studio this way.

enter image description here

like image 53
drulabs Avatar answered Oct 08 '22 20:10

drulabs


The "Launch standalone SDK Manager" option seems to be gone in Android Studio 2.3.3 for Windows. However, there is sdkmanager.bat in \tools\bin

like image 23
Mark Avatar answered Oct 08 '22 21:10

Mark


It is possible to do it all by code using the sdkmanager tool.

The sdkmanager is a command line tool that allows you to view, install, update, and uninstall packages for the Android SDK.

This is an example using the sdkmanager with the command line:

  1. First at all, the sdkmanager is located in android_sdk/tools/bin/.
  2. Go where the sdkmanager is located
  3. List installed and available packages using this command:

sdkmanager --list

The result willl be something similar to this

enter image description here

  1. In my case I want to Download a System Image with Release Name "P" with ABI x86 ( I saw this information from Android Studio)

enter image description here

  1. The next step is to search that system image in your list

enter image description here

  1. Finally install this package in this way:

./sdkmanager "system-images;android-P;google_apis;x86"

This will begin the process of downloading the package enter image description here

  1. After finish you can check that the image is available to use

enter image description here

For more info: https://developer.android.com/studio/command-line/sdkmanager.html#usage

like image 39
Jorge Casariego Avatar answered Oct 08 '22 20:10

Jorge Casariego