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

Viewed 7291

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

2 Answers

Installing Rosetta will fix your issue.

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

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

Related