2 Replies Latest reply on Jun 12, 2017 9:50 AM by vabiro1

    Multiple dex issue only when Release build for Android

    vabiro1

      Hi,

       

      I have been trying to build an app that was developed in Phonegap and I can't seem to get it to build for release. It seems to build fine for the simulator in Android Studio, but when I try to do a signed release it returns errors.

       

      I have tried building in Android Studio and the Build server, so I don't think it is something unique to my desktop configuration.

       

      The error I get in both is:

       

      FAILURE: Build failed with an exception.

       

      * What went wrong:

      Execution failed for task ':transformClassesWithDexForRelease'.

      > 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/actions/ReserveIntents;

       

      It is exactly the same in both Studio and Web Build.

       

      I don't have many plugins, and I have built for release on iOS and Android with all of them:

      #phonegap plugin -L

      cordova-plugin-console 1.0.5 "Console"

      cordova-plugin-googleplayservices 19.0.3 "Google Play Services for Android"

      cordova-plugin-inappbrowser 1.7.1 "InAppBrowser"

      cordova-plugin-statusbar 2.1.3 "StatusBar"

      cordova-plugin-whitelist 1.3.2 "Whitelist"

      onesignal-cordova-plugin 2.1.2 "OneSignal Push Notifications"

       

      Any thoughts?

       

      Cheers

      Victor