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 {
    jcenter()
    google() <--don't forget to add this
}

dependencies {
    classpath 'com.android.tools.build:gradle:3.5.3' <--upgrade here
}

Leave a Comment