I have been working on this kind of error for days
The problem was the coexistence of cordova-plugin-crosswalk-webview and phonegap-plugin-push. They were using different versions of the com.android.support:support library (and it looks like the last release of android.support library breaks cordova builds).
I know that crosswalk webview is no longer maintained but it’s doing the job for now and I don’t want to remove it.
So I have updated my android studio and I have added cordova-android-support-gradle-release in my project (it chooses the right android support version for you ).
Now I am able to build releases like a charm
I didn’t manage to build with email@example.com (flavor issue, see this post to get ride of it : https://stackoverflow.com/questions/47413647/ionic-android-build-error-all-flavors-must-now-belong-to-a-named-flavor-dimen)
I hope that will help some people !
My infos :
cli packages: (C:\Users\***\Documents\***\***\mobile-app\node_modules) @ionic/cli-utils : 1.19.1 ionic (Ionic CLI) : 3.19.1 global packages: cordova (Cordova CLI) : 8.0.0 local packages: @ionic/app-scripts : 3.1.8 Cordova Platforms : android 6.3.0 Ionic Framework : ionic-angular 3.9.2 System: Android SDK Tools : 26.1.1 Node : v6.11.3 npm : 5.2.0 OS : Windows 10 Environment Variables: ANDROID_HOME : C:\Users\****\AppData\Local\Android\Sdk Misc: backend : pro