android studio - manually download system image for emulator

后端 未结 7 1765
礼貌的吻别
礼貌的吻别 2020-12-23 16:39

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 c

相关标签:
7条回答
  • 2020-12-23 16:59

    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.

    0 讨论(0)
  • 2020-12-23 17:03

    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!

    0 讨论(0)
  • 2020-12-23 17:03

    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.

    0 讨论(0)
  • 2020-12-23 17:17

    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.

    0 讨论(0)
  • 2020-12-23 17:19

    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.

    0 讨论(0)
  • 2020-12-23 17:19

    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.

    0 讨论(0)
提交回复
热议问题