The correct solution would probably have been:
- Install a Standalone Gradle from gradle.org/install (if you have Android Studio 3 installed)
- Upgrade cordova-android to 6.4.0 (
ionic cordova platform remove android
,ionic cordova platform add android@6.4.0
)