'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



Solution 1:[1]

Installing Rosetta will fix your issue.

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

Solution 2:[2]

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

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Noelia
Solution 2 Suren Arakelyan