Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android emulator doesn't work on Apple M1 chip

I've tried to run android emulator on an Apple M1 chip MacBook but it doesn't work and AVD Manager shows an error with the message: Could not start AVD. It seems the root of this problem is that M1 chip doesn't support virtualization and AVD needs VT-x for x86 images. Most of the images are based on x86 and arm based images aren't provided for latest android versions. Is there any solution to bypass this issue? (Except using physical devices and old images)

like image 667
Squti Avatar asked Nov 26 '20 05:11

Squti


People also ask

Does Android emulator work on Mac M1?

As of August 2022, there are no Android Emulators available for the Apple M1 chip Macbook to play Android games or run apps. If you have an older version of Mac or an Intel-powered Mac, you can try Bluestacks. Bluestacks is currently the best Android Emulator available on Mac.

Does android studio work with M1?

The latest Canary build of Android Studio (15 as of writing this) brings initial native support for M1 Macs. There are still a lot of things missing, but the basics work. You can build and run JVM-only apps (the C++ compiler isn't finished). You can use the design tools, like the layout preview.

Are there any issues with Apple M1 chip?

MIT researchers recently discovered a physical security flaw in M1 chips. What should you do about it? On June 10, 2022, MIT's Computer Science and Artificial Intelligence Laboratory (CSAIL) released a report outlining an unpatchable flaw with Apple's popular M1 chip.

Will any apps not work on M1 Macs?

Rosetta 2 makes most apps run on M1 Macs, but developers, including Adobe and Microsoft, are shipping native apps.

How to run Android apps on the M1 chip?

If you want to run an Android emulator on your M1 processor, this is one of the best ways to do it. In this case, if you don’t need to install Windows 10 on your macOS, you should try Android Studio. This will let you run Android applications on your chip.

How to download Android emulator M1 on Mac?

Click on releases option and download the latest preview version by clicking of android emulator m1 preview.dmg. It will download a DMG file. Click on the DMG file in downloads folder of your Mac.

How to run AVD on M1 chip?

As you can see in AVD option shows a new emulator with name Virtual Device which is our M1 Android Emulator. Press the run button now it will build the project and deploy it in your AVD. All set! Now we have an AVD running natively on M1 Chip although there are some issues which will be resolved in future releases.

Is the M1 chip compatible with M1 MacBook?

The M1 chip has taken the market by storm. It was introduced with MacBook and now M1 MacBooks are some of the best laptops in the market. However, the transition from Intel to M1 brings some compatibility issues on the M1 Macs. Some software does not work with the M1 chip.


Video Answer


3 Answers

UPDATE: Here is the link to the Android Emulator Apple Silicon Preview:

https://androidstudio.googleblog.com/2020/12/android-emulator-apple-silicon-preview.html


They are working on it, but it will take time. I found some preview on Twitter - Preview of Android simulator on M1 And some solutions will be available at the end of the year. Maby.

And good source for the following is here on Reddit: ARM-based Macs for Android Development?

like image 104
Robert Kaločai Avatar answered Oct 24 '22 09:10

Robert Kaločai


enter image description here

create AVD with arm64 based image will help to resolve the issue.

like image 42
Rahul R Avatar answered Oct 24 '22 07:10

Rahul R


I doubt there is a workaround as the AVD uses Intel based API's to run the emulator, and because Apple broke up with Intel it won't work. You might just have to use a physical device or wait for a update.

That being said, there is work being done to support ARM based hosts.

like image 32
Akshat Adsule Avatar answered Oct 24 '22 08:10

Akshat Adsule