Actually, I am trying to install Android Emulator on my MacBook through android studio But Installation process is finished with an error In this Exerror article, We are going to learn about How to reproduce this error and we will discuss All Possible Solutions Lets Get Start with This Article.
How this error Occurs ?
Actually, I am trying to install Android Emulator on my MacBook through android studio But I am facing the following error.
Preparing "Install Android Emulator (revision: 31.3.10)".
Downloading https://dl.google.com/android/repository/emulator-darwin_aarch64-8807927.zip
This download could not be finalized from the interim state. Retrying without caching.
Downloading https://dl.google.com/android/repository/emulator-darwin_aarch64-8807927.zip
Failed packages:
So here I am writing all the possible solutions that I have tried to resolve this error.
How to fix Can’t install Android Emulator in Macbook Android Studio?
How To fix Can’t install Android Emulator in Macbook Android Studio?
To fix Can’t install Android Emulator in Macbook Android Studio If You are not able to install Android Emulator then You can manually install a select version of the emulator. Just follow this Guide. To manually install a select version of the emulator on Studio, you need to paste the desired emulator package contents into your SDK installation directory and change the emulator version specified in the
package.xml
file.Can’t install Android Emulator in Macbook Android Studio
To fix Can’t install Android Emulator in Macbook Android Studio If You are not able to install Android Emulator then You can manually install a select version of the emulator. Just follow this Guide. To manually install a select version of the emulator on Studio, you need to paste the desired emulator package contents into your SDK installation directory and change the emulator version specified in the
package.xml
file.
Solution 1: Manually install a select version of the emulator
If You are not able to install Android Emulator then You can manually install a select version of the emulator. Just follow this Guide.
To manually install a select version of the emulator on Studio, you need to paste the desired emulator package contents into your SDK installation directory and change the emulator version specified in the package.xml
file. Specifically, follow these steps:
- Locate your SDK installation directory. The default location of this directory varies by platform:
- On Windows, it’s the
%LocalAppData%\Android\Sdk
directory. This normally expands toC:\Users\<username>\AppData\Local\Android\Sdk
, although it might vary based on your system. - On macOS, it’s the
$HOME/Library/Android/sdk
directory. - On Linux, it’s the
$HOME/Android/Sdk
directory.You can check where your SDK installation directory is by opening Studio and clicking Android Studio > Preferences > Appearances & Behavior > System Settings > Android SDK. The Android SDK Location file path is your SDK installation directory location.If you’re using macOS and browsing using Finder, theLibrary
folder might not be visible by default. To navigate there, open Finder and click Go > Go to Folder and search for “Library.”
- On Windows, it’s the
- Rename the existing
emulator
directory in the SDK installation directory, because you’ll unzip the newly downloadedemulator
directory here in the next step. For example, call itemulator_original
. - Unzip the emulator zip file you downloaded. Move the contents into the SDK installation directory.
- For Mac M1 (Apple Silicon) users: After unzipping the emulator zip file, clear the quarantine attribute on the emulator package by running:
xattr -dr com.apple.quarantine emulator/
This should reduce messages about whether the package should be checked or blocked. - Paste the
package.xml
file from theemulator_original
a directory into the new emulator directory. - Change the emulator version specified in the package.xml file to the version you have downloaded and want to use. To do this, scroll to the bottom of the package.xml file and find the text that looks like this:
<revision><major>31</major><minor>1</minor><micro>4</micro></revision>
This is where you should specify the emulator version you downloaded and want to install. - Now, Your android Emulator is installed successfully in your system. Thank you.
You Can Read More at developer.android.com. Thanks.
Conclusion
It’s all About this error. I hope We Have solved Your error. Comment below Your thoughts and your queries. Also, Comment below on which solution worked for you.
Also, Read
- IndentationError: unexpected indent
- yarn: command not found
- ModuleNotFoundError: No module named ‘pip’
- ModuleNotFoundError: No module named ‘numpy’
- Uncaught ReferenceError: Buffer is not defined