I started getting failures with Ionic Pro Native Packaging on Android. The failure is:
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ‘:transformDexWithDexForRelease’.
> com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.dex.DexException: Multiple dex files define Lcom/google/android/gms/auth/api/signin/internal/zzo;
To attempt tracking where the error originated, I submitted native packaging jobs to other builds in my build history to see which commit introduced the problem. This got me to the point where I ended up submitting a native packaging job to the last job where native packaging succeeded. This time it failed.
Comparing logs between the failed and successful packaging I noticed that the build is now using https://jcenter.bintray.com/com/google/gms/google-services/3.2.1/google-services-3.2.1.jar. There are other version updates. My theory is that there is some dependency in my project that is not pegged to a specific version and so the Packaging jobs running on ionic pro are not packaging with identical versions.
My project seems to package fine on my local host with ionic cordova build android --prod --release. I even went through the steps on https://ionic.zendesk.com/hc/en-us/articles/115015846847-Troubleshooting-snapshot-build-failures- to attempt locally identifying how to fix, but what succeeds locally, fails on ionic pro.
Any advice would be welcome. Thank you