I had the same problem as the OP and I followed all the steps but now I am getting a different error. I’ve been searching all over and see similar issues but none of the solutions are fixing this for me and I am really confused as to what the actual problem is.
Cordova CLI: 7.0.1 Ionic CLI Version: 2.2.3 Ionic App Lib Version: 2.2.1 ios-deploy version: Not installed ios-sim version: Not installed OS: Linux 4.9 Node Version: v6.11.1 Xcode version: Not installed
I am running ‘ionic package build android’ and getting a long error that boils down to this.
FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':transformClassesWithDexForDebug'. > com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.dex.DexException: Multiple dex files define Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompat$AccessibilityServiceInfoVersionImpl;