Elarius0
Elarius0

Reputation: 121

Cause: error=86, Bad CPU type in executable M1 Macbook (Android studio)

When attempting to run the emulator on android studio I receive the Cause: error=86, Bad CPU type in executable error message. I'm using the most up to date android studio for ARM processors. Additionally, when i restart android studio the devices now permanently states "Loading devices". I just got this laptop.

Things I have tried:

  1. Restarting PC (hahaha)
  2. Restarting android studio
  3. Reinstalling android studio
  4. Trying old versions of android studio for arm devices.
  5. I'm using Android 12 (s) preview

Please help :D

Upvotes: 12

Views: 18618

Answers (3)

lakshmiprabhramesh
lakshmiprabhramesh

Reputation: 31

You will need Rosetta 2 on your Mac. Rosetta 2,is a component of macOS Big Sur, is part of the Mac transition from Intel processors to Apple silicon, allowing Intel applications to run on Apple silicon-based Macs.

softwareupdate --install-rosetta

Upvotes: 2

Installing Rosetta will fix your issue.

In terminal run the command: softwareupdate --install-rosetta

Upvotes: 27

Suren Arakelyan
Suren Arakelyan

Reputation: 11

I have met that kind of issue when compiled a java program with intellij idea. Installing the XCode fixed my issue.

Upvotes: 1

Related Questions