Help with BUILD FAILED Android Ionic

thank you @doriantorres84. Your solution works on cordova-android@6.3.0 and cordova-android@6.4.0. So, here make it more detail.

  • open platform/android/build.gradle
  • find android {
  • add this inside
    defaultConfig {
     minSdkVersion 21
     targetSdkVersion 26
     multiDexEnabled true
    }
  • it should looks like this
android {
    defaultConfig {
     minSdkVersion 21
     targetSdkVersion 26
     multiDexEnabled true
    }

    //the rest...
}