Installing Android Emulator In Android Studio with zip files

前端 未结 7 1932
一生所求
一生所求 2021-02-01 07:19

I wasn\'t able to install an emulator to my android studio installation. So, I copied this link from the studio and downloaded the zip file. Now I need help on how to manually i

7条回答
  •  被撕碎了的回忆
    2021-02-01 08:19

    So I faced almost similar error today but it was about updating the emulator itself. Cause was the folder Android tried to download the file needed root permissions to access it. So here is what I did:

    1. Downloaded the file in the directory accessible curl https://dl.google.com/android/repository/emulator-darwin-4899998.zip -o emulator-darwin-4899998.zip
    2. Create the path as root user sudo mkdir -p /var/folders/8t/kf42z0w94278zwm6x_wzll7c0000gp/T/PackageOperation03/
    3. Make it writable by everyone sudo chmod -Rfv 777 /var/folders/8t/kf42z0w94278zwm6x_wzll7c0000gp/T/PackageOperation03/ /var/folders/8t/kf42z0w94278zwm6x_wzll7c0000gp/T/PackageOperation03/
    4. Move the downloaded file to the path mv emulator-darwin-4899998.zip /var/folders/8t/kf42z0w94278zwm6x_wzll7c0000gp/T/PackageOperation03/
    5. Finally run Android Studio update check and let it update. It will check existing file and use that one to update instead of re-downloading

提交回复
热议问题