Android Studio throws an error while building the project.
the error is :
Cause: error=86, Bad CPU type in executable.
The detail error:
Bad CPU type in executable --> Can not run command xxx/aapt
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With