Android Studio-- Cause: error=86, Bad CPU type in executable
Finally I solved this by a little change.
goto the error module and changed the buildToolsVersion to anther(bigger version) in build.gradle file.
rebuild again, the error disappeared.
ADB doesn't support ARM, it needs Rosetta
to run.
I fixed this issue by installing Rosetta. Open Terminal and run the following command:
softwareupdate --install-rosetta