androidandroid-studio-3.0

Android Studio-- Cause: error=86, Bad CPU type in executable


Android Studio throws an error while building the project.

the error is :

Cause: error=86, Bad CPU type in executable.

enter image description here

The detail error: enter image description here

Bad CPU type in executable --> Can not run command xxx/aapt


Solution

  • 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.