问题
Good day,I'm a student and I'm trying to create a virtual device in Android Studio, however my home internet is too slow to download a System Image, there is an internet cafe near me that has very fast internet and I plan to download the System Image there by accessing in my browser this link : https://dl.google.com/android/repository/sys-img/google_apis/x86-25_r08.zip
From this message in the window where Android Studio downloads the System Image for Android Nougat
To install:
- Google APIs Intel x86 Atom System Image (system-images;android-25;google_apis;x86)
Preparing "Install Google APIs Intel x86 Atom System Image".
Downloading https://dl.google.com/android/repository/sys-img/google_apis/x86-25_r08.zip
However I do not know how to install it in android studio. How am I able to install it myself on android studio and make an emulator?
Many thanks.
回答1:
In windows: First locate your android-sdk. By default it's in your C:\Users\Your.name\AppData\Local\ in it's root folder. where you can find: SDK Manager.exe, make a folder name it "system-images", my api 25 image is at system-images\android-25\google_apis\x86_64\Files
Hope you can Figure it out. Comment if you have any problem.
回答2:
In mac OSX:
~/Library/Android/sdk/system-images/android-[API_VERSION]/[API_TYPE]/x86
Replace [API_VERSION]
with Android version you are downloading and the [API_TYPE]
can either be google_apis_playstore
or google_apis
depending on whether the image you are downloading comes with Google Play or not.
回答3:
On Windows 10:
- Download the file from e.g.:
https://dl.google.com/android/repository/sys-img/google_apis/x86-27_r09.zip.
- Extract the zipped file.
- Copy (OR Cut, not recommended) the contents of the extracted folder e.g.:
x86
. - Find the
android-sdk
folder. By default, it should be located at C:\Users\[YOUR USER NAME]\AppData\Local\Android\Sdk. - Look for a folder named
system-images
. Createsystem-images
if it doesn't exist. Depending on the file you downloaded, create subfolders withinsystem-images
. E.g.:system-images
->android-27
->google_apis
. - Paste within
google_apis
. - Restart
Android Studio
and the system image should be selectable.
Shout if you need any further assistance.
回答4:
FOR WINDOWS:
To get the exact path of the system-image, try to download from android studio first, after 1% download, stop the download and go to your sdk path.
E.g. C:\Users\TBR\AppData\Local\Android\Sdk, you will see a folder name "system-images" this folder was created from the part download, open the sub-folder till you get to the last sub-folder.
E.g. C:\Users\TBR\AppData\Local\Android\Sdk\system-images\android-27\google_apis\x86 i.e x86 is last sub folder (delete any content in this last sub-folder)
Download the system images manually, unzipped and copy the whole content, then paste it into your last sub-folder. Download link for android-27 - https://dl.google.com/android/repository/sys-img/google_apis_playstore/x86-27_r03.zip
Go back to android studio and you will see the system-image there now.
回答5:
I have faced the same issue when manually installing an android-wear image. For android-wear images the directory structure looks like this.
<your_android_sdk_location>/system-images/android-<version>/android-wear/<extract_downloaded_android-wear_image_here>
example: For this wear image https://dl.google.com/android/repository/sys-img/android-wear/x86-28_r03.zip
<your_android_sdk_location>/system-images/android-28/android-wear/x86
Don't forget to restart the Android Studio!
回答6:
Actually, if you extract downloaded zip archive, system will never find it. You have to click in 'Download' tag, then in folder
%ANDROIDSDK%/system-images/android-25/
^^^ version of SDK you use
if google-api then additional folder 'google_apis' will be created .install file with the path, where archive is located. Usually it is
C:\Users[YOUR USER NAME]\AppData\Local\Temp\PackageOperation01
Put there your zip archive and go to Download link again.
After that, it will not start download, but will start to check and unzip operation. This resolves offline installation issue.
回答7:
Go to the AVD Manager in Android Studio (it is in the toolbar and looks like a tablet with an Android on it), then click on "Create Virtual Device" once a window called "Android Virtual Device Manager" pops up. Next, choose the device you want to pick, and then click "Next". You will then be able to download a system image.
来源:https://stackoverflow.com/questions/45686444/android-studio-manually-download-system-image-for-emulator