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.

Upgrading buildToolsVersion is not work for me, but after upgraded gradle version, the error disappeared.

buildscript {
repositories {
    google() <--don't forget to add this

dependencies {
    classpath '' <--upgrade here

Leave a Comment