8 Replies Latest reply on Sep 4, 2016 4:53 AM by georgew76584710

    Build Now Failing - Multidex Issue?

    AlexanderLandis

      Hi all,

       

      My app is no longer building in PhoneGap Build recently and I am having a lot of difficulty figuring out why and how to fix it.  I am at a loss on what I need to do to resolve this.  I know my config.xml file likely needs to be updated, but not sure what I need to change.  Any help with this issue is greatly appreciated!

       

      Here is the log:

       

      Build Date: 2016-08-08 20:51:27 +0000

      Observed package id 'build-tools;23.0.1' in inconsistent location '/android-sdk/build-tools/current' (Expected '/android-sdk/build-tools/23.0.1')

      Already observed package id 'build-tools;23.0.1' in '/android-sdk/build-tools/23.0.1'. Skipping duplicate at '/android-sdk/build-tools/current'

      Incremental java compilation is an incubating feature.

      :preBuild UP-TO-DATE

      :preReleaseBuild UP-TO-DATE

      :checkReleaseManifest

      :preDebugBuild UP-TO-DATE

      :CordovaLib:preBuild UP-TO-DATE

      :CordovaLib:preDebugBuild UP-TO-DATE

      :CordovaLib:compileDebugNdk UP-TO-DATE

      :CordovaLib:compileLint

      :CordovaLib:copyDebugLint UP-TO-DATE

      :CordovaLib:mergeDebugProguardFiles

      :CordovaLib:packageDebugRenderscript UP-TO-DATE

      :CordovaLib:checkDebugManifest

      :CordovaLib:prepareDebugDependencies

      :CordovaLib:compileDebugRenderscript

      :CordovaLib:generateDebugResValues

      :CordovaLib:generateDebugResources

      :CordovaLib:packageDebugResources

      :CordovaLib:compileDebugAidl

      :CordovaLib:generateDebugBuildConfig

      :CordovaLib:mergeDebugShaders

      :CordovaLib:compileDebugShaders

      :CordovaLib:generateDebugAssets

      :CordovaLib:mergeDebugAssets

      :CordovaLib:processDebugManifest

      :CordovaLib:processDebugResources

      :CordovaLib:generateDebugSources

      :CordovaLib:incrementalDebugJavaCompilationSafeguard

      :CordovaLib:compileDebugJavaWithJavac

      :CordovaLib:compileDebugJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).

      Note: Some input files use or override a deprecated API.

      Note: Recompile with -Xlint:deprecation for details.

      :CordovaLib:processDebugJavaRes UP-TO-DATE

      :CordovaLib:transformResourcesWithMergeJavaResForDebug

      :CordovaLib:transformClassesAndResourcesWithSyncLibJarsForDebug

      :CordovaLib:mergeDebugJniLibFolders

      :CordovaLib:transformNative_libsWithMergeJniLibsForDebug

      :CordovaLib:transformNative_libsWithSyncJniLibsForDebug

      :CordovaLib:bundleDebug

      :CordovaLib:preReleaseBuild UP-TO-DATE

      :CordovaLib:compileReleaseNdk UP-TO-DATE

      :CordovaLib:copyReleaseLint UP-TO-DATE

      :CordovaLib:mergeReleaseProguardFiles

      :CordovaLib:packageReleaseRenderscript UP-TO-DATE

      :CordovaLib:checkReleaseManifest

      :CordovaLib:prepareReleaseDependencies

      :CordovaLib:compileReleaseRenderscript

      :CordovaLib:generateReleaseResValues

      :CordovaLib:generateReleaseResources

      :CordovaLib:packageReleaseResources

      :CordovaLib:compileReleaseAidl

      :CordovaLib:generateReleaseBuildConfig

      :CordovaLib:mergeReleaseShaders

      :CordovaLib:compileReleaseShaders

      :CordovaLib:generateReleaseAssets

      :CordovaLib:mergeReleaseAssets

      :CordovaLib:processReleaseManifest

      :CordovaLib:processReleaseResources

      :CordovaLib:generateReleaseSources

      :CordovaLib:incrementalReleaseJavaCompilationSafeguard

      :CordovaLib:compileReleaseJavaWithJavac

      :CordovaLib:compileReleaseJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).

      Note: Some input files use or override a deprecated API.

      Note: Recompile with -Xlint:deprecation for details.

      :CordovaLib:processReleaseJavaRes UP-TO-DATE

      :CordovaLib:transformResourcesWithMergeJavaResForRelease

      :CordovaLib:transformClassesAndResourcesWithSyncLibJarsForRelease

      :CordovaLib:mergeReleaseJniLibFolders

      :CordovaLib:transformNative_libsWithMergeJniLibsForRelease

      :CordovaLib:transformNative_libsWithSyncJniLibsForRelease

      :CordovaLib:bundleRelease

      :prepareComAndroidSupportAppcompatV72300Library

      :prepareComAndroidSupportMediarouterV72300Library

      :prepareComAndroidSupportSupportV42300Library

      :prepareComGoogleAndroidGmsPlayServices920Library

      :prepareComGoogleAndroidGmsPlayServicesAds920Library

      :prepareComGoogleAndroidGmsPlayServicesAdsLite920Library

      :prepareComGoogleAndroidGmsPlayServicesAnalytics920Library

      :prepareComGoogleAndroidGmsPlayServicesAnalyticsImpl920Library

      :prepareComGoogleAndroidGmsPlayServicesAppindexing920Library

      :prepareComGoogleAndroidGmsPlayServicesAppinvite920Library

      :prepareComGoogleAndroidGmsPlayServicesAuth920Library

      :prepareComGoogleAndroidGmsPlayServicesAuthBase920Library

      :prepareComGoogleAndroidGmsPlayServicesBase920Library

      :prepareComGoogleAndroidGmsPlayServicesBasement920Library

      :prepareComGoogleAndroidGmsPlayServicesCast920Library

      :prepareComGoogleAndroidGmsPlayServicesCastFramework920Library

      :prepareComGoogleAndroidGmsPlayServicesClearcut920Library

      :prepareComGoogleAndroidGmsPlayServicesContextmanager920Library

      :prepareComGoogleAndroidGmsPlayServicesDrive920Library

      :prepareComGoogleAndroidGmsPlayServicesFitness920Library

      :prepareComGoogleAndroidGmsPlayServicesGames920Library

      :prepareComGoogleAndroidGmsPlayServicesGass920Library

      :prepareComGoogleAndroidGmsPlayServicesGcm920Library

      :prepareComGoogleAndroidGmsPlayServicesIdentity920Library

      :prepareComGoogleAndroidGmsPlayServicesIid920Library

      :prepareComGoogleAndroidGmsPlayServicesLocation920Library

      :prepareComGoogleAndroidGmsPlayServicesMaps920Library

      :prepareComGoogleAndroidGmsPlayServicesNearby920Library

      :prepareComGoogleAndroidGmsPlayServicesPanorama920Library

      :prepareComGoogleAndroidGmsPlayServicesPlaces920Library

      :prepareComGoogleAndroidGmsPlayServicesPlus920Library

      :prepareComGoogleAndroidGmsPlayServicesSafetynet920Library

      :prepareComGoogleAndroidGmsPlayServicesTagmanager920Library

      :prepareComGoogleAndroidGmsPlayServicesTagmanagerApi920Library

      :prepareComGoogleAndroidGmsPlayServicesTasks920Library

      :prepareComGoogleAndroidGmsPlayServicesVision920Library

      :prepareComGoogleAndroidGmsPlayServicesWallet920Library

      :prepareComGoogleAndroidGmsPlayServicesWearable920Library

      :prepareComGoogleFirebaseFirebaseAnalytics920Library

      :prepareComGoogleFirebaseFirebaseAnalyticsImpl920Library

      :prepareComGoogleFirebaseFirebaseAuth920Library

      :prepareComGoogleFirebaseFirebaseAuthCommon920Library

      :prepareComGoogleFirebaseFirebaseAuthModule920Library

      :prepareComGoogleFirebaseFirebaseCommon920Library

      :prepareComGoogleFirebaseFirebaseConfig920Library

      :prepareComGoogleFirebaseFirebaseCrash920Library

      :prepareComGoogleFirebaseFirebaseDatabase920Library

      :prepareComGoogleFirebaseFirebaseDatabaseConnection920Library

      :prepareComGoogleFirebaseFirebaseIid920Library

      :prepareComGoogleFirebaseFirebaseMessaging920Library

      :prepareComGoogleFirebaseFirebaseStorage920Library

      :prepareComGoogleFirebaseFirebaseStorageCommon920Library

      :prepareProjectCordovaLibUnspecifiedReleaseLibrary

      :prepareReleaseDependencies

      :compileReleaseAidl

      :compileReleaseRenderscript

      :generateReleaseBuildConfig

      :mergeReleaseShaders

      :compileReleaseShaders

      :generateReleaseAssets

      :mergeReleaseAssets

      :generateReleaseResValues

      :generateReleaseResources

      :mergeReleaseResources

      :processReleaseManifest

      :processReleaseResources

      :generateReleaseSources

      :incrementalReleaseJavaCompilationSafeguard

      :compileReleaseJavaWithJavac

      :compileReleaseJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).

      Note: Some input files use or override a deprecated API.

      Note: Recompile with -Xlint:deprecation for details.

      :compileReleaseNdk UP-TO-DATE

      :compileReleaseSources

      :prePackageMarkerForRelease

      :transformClassesWithDexForRelease

      Running dex in-process requires build tools 23.0.2.

      For faster builds update this project to use the latest build tools.

      Dex: The number of method references in a .dex file cannot exceed 64K.

      Learn how to resolve this issue at https://developer.android.com/tools/building/multidex.html

        UNEXPECTED TOP-LEVEL EXCEPTION:

        com.android.dex.DexIndexOverflowException: method ID not in [0, 0xffff]: 65536

        at com.android.dx.merge.DexMerger$6.updateIndex(DexMerger.java:502)

        at com.android.dx.merge.DexMerger$IdMerger.mergeSorted(DexMerger.java:277)

        at com.android.dx.merge.DexMerger.mergeMethodIds(DexMerger.java:491)

        at com.android.dx.merge.DexMerger.mergeDexes(DexMerger.java:168)

        at com.android.dx.merge.DexMerger.merge(DexMerger.java:189)

        at com.android.dx.command.dexer.Main.mergeLibraryDexBuffers(Main.java:502)

        at com.android.dx.command.dexer.Main.runMonoDex(Main.java:334)

        at com.android.dx.command.dexer.Main.run(Main.java:277)

        at com.android.dx.command.dexer.Main.main(Main.java:245)

        at com.android.dx.command.Main.main(Main.java:106)

        

      :transformClassesWithDexForRelease FAILED

       

      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.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.111.x86_64/bin/java'' finished with non-zero exit value 2

       

      * Try:

      Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

       

      BUILD FAILED

       

      Total time: 2 mins 46.847 secs

      Error: /project/gradlew: Command failed with exit code 1 Error output:

      Note: Some input files use or override a deprecated API.

      Note: Recompile with -Xlint:deprecation for details.

      Note: Some input files use or override a deprecated API.

      Note: Recompile with -Xlint:deprecation for details.

      Note: Some input files use or override a deprecated API.

      Note: Recompile with -Xlint:deprecation for details.

      Dex: The number of method references in a .dex file cannot exceed 64K.

      Learn how to resolve this issue at https://developer.android.com/tools/building/multidex.html

        UNEXPECTED TOP-LEVEL EXCEPTION:

        com.android.dex.DexIndexOverflowException: method ID not in [0, 0xffff]: 65536

        at com.android.dx.merge.DexMerger$6.updateIndex(DexMerger.java:502)

        at com.android.dx.merge.DexMerger$IdMerger.mergeSorted(DexMerger.java:277)

        at com.android.dx.merge.DexMerger.mergeMethodIds(DexMerger.java:491)

        at com.android.dx.merge.DexMerger.mergeDexes(DexMerger.java:168)

        at com.android.dx.merge.DexMerger.merge(DexMerger.java:189)

        at com.android.dx.command.dexer.Main.mergeLibraryDexBuffers(Main.java:502)

        at com.android.dx.command.dexer.Main.runMonoDex(Main.java:334)

        at com.android.dx.command.dexer.Main.run(Main.java:277)

        at com.android.dx.command.dexer.Main.main(Main.java:245)

        at com.android.dx.command.Main.main(Main.java:106)

        

       

      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.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.111.x86_64/bin/java'' finished with non-zero exit value 2

       

      * Try:

      Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

        at ChildProcess.whenDone (/project/cordova/node_modules/cordova-common/src/superspawn.js:169:23)

        at emitTwo (events.js:87:13)

        at ChildProcess.emit (events.js:172:7)

        at maybeClose (internal/child_process.js:818:16)

        at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)

        • 1. Re: Build Now Failing - Multidex Issue?
          VectorP Level 4

          I know my config.xml file likely needs to be updated, but not sure what I need to change.

          Hard to tell without seeing it.

          - Could you please post your config?

          - Can you confirm that both your config and your index.html are in the same (root) directory of your zip file, and that you don't upload a full Cordova project (with /platforms, /plugins, etc.)?

          • 2. Re: Build Now Failing - Multidex Issue?
            eazyigz Level 1

            Is there a way to enable multidexing in Air app, like in manifestAdditions?

            • 3. Re: Build Now Failing - Multidex Issue?
              AlexanderLandis Level 1

              Hi VectorP,

               

              Below is my config.xml.  Yes, the index.html and config.xml are in the same root directory, and I don't know if it is a full Cordova project?  I'm assuming it is.  The build has been working fine until yesterday.  The last time I had a successful build was in June, and I didn't change any files since then.  I did update the Phonegap version, thinking that might be causing the problem, but no luck.

               

              config.xml

               

              <?xml version="1.0" encoding="UTF-8" ?>

              <widget xmlns = "http://www.w3.org/ns/widgets"

                  xmlns:gap = "http://phonegap.com/ns/1.0"

                  id        = "com.watudu"

                  version   = "1.0.4">

               

              <name>Watudu</name>

               

              <preference name="android-targetSdkVersion" value="23" />

              <preference name="android-minSdkVersion" value="11" />

              <preference name="SplashScreen" value="splash" />

               

              <icon src="icon.png" />

              <gap:splash src="splash.png" />

               

              <icon src="graphics/android/icons/Icon-ldpi.png"    gap:platform="android" gap:qualifier="ldpi" />

              <icon src="graphics/android/icons/Icon-mdpi.png"    gap:platform="android" gap:qualifier="mdpi" />

              <icon src="graphics/android/icons/Icon-hdpi.png"    gap:platform="android" gap:qualifier="hdpi" />

              <icon src="graphics/android/icons/Icon-xhdpi.png"   gap:platform="android" gap:qualifier="xhdpi" />

              <icon src="graphics/android/icons/Icon-xxhdpi.png"  gap:platform="android" gap:qualifier="xxhdpi" />

              <icon src="graphics/android/icons/Icon-xxxhdpi.png" gap:platform="android" gap:qualifier="xxxhdpi" />

               

              <gap:splash src="graphics/android/splash_screens/ldpi.9.png"    gap:platform="android" gap:qualifier="ldpi" />

              <gap:splash src="graphics/android/splash_screens/mdpi.9.png"    gap:platform="android" gap:qualifier="mdpi" />

              <gap:splash src="graphics/android/splash_screens/hdpi.9.png"    gap:platform="android" gap:qualifier="hdpi" />

              <gap:splash src="graphics/android/splash_screens/tvdpi.9.png"   gap:platform="android" gap:qualifier="tvdpi" />

              <gap:splash src="graphics/android/splash_screens/xhdpi.9.png"   gap:platform="android" gap:qualifier="xhdpi" />

              <gap:splash src="graphics/android/splash_screens/xxhdpi.9.png"  gap:platform="android" gap:qualifier="xxhdpi" />

              <gap:splash src="graphics/android/splash_screens/xxxhdpi.9.png" gap:platform="android" gap:qualifier="xxxhdpi" />

               

              <icon src="graphics/iOS/icons/iOS-7.1/Icon-120.png" gap:platform="ios" width="120" height="120" />

              <icon src="graphics/iOS/icons/iOS-7.1/Icon-152.png" gap:platform="ios" width="152" height="152" />

              <icon src="graphics/iOS/icons/iOS-7.1/Icon-16.png" gap:platform="ios" width="16" height="16" />

              <icon src="graphics/iOS/icons/iOS-7.1/Icon-24.png" gap:platform="ios" width="24" height="24" />

              <icon src="graphics/iOS/icons/iOS-7.1/Icon-32.png" gap:platform="ios" width="32" height="32" />

              <icon src="graphics/iOS/icons/iOS-7.1/Icon-40.png" gap:platform="ios" width="40" height="40" />

              <icon src="graphics/iOS/icons/iOS-7.1/Icon-40@2x.png" gap:platform="ios" width="80" height="80" />

              <icon src="graphics/iOS/icons/iOS-7.1/Icon-60.png" gap:platform="ios" width="60" height="60" />

              <icon src="graphics/iOS/icons/iOS-7.1/Icon-60@2x.png" gap:platform="ios" width="120" height="120" />

              <icon src="graphics/iOS/icons/iOS-7.1/Icon-64.png" gap:platform="ios" width="64" height="64" />

              <icon src="graphics/iOS/icons/iOS-7.1/Icon-72.png" gap:platform="ios" width="72" height="72" />

              <icon src="graphics/iOS/icons/iOS-7.1/Icon-72@2x.png" gap:platform="ios" width="144" height="144" />

              <icon src="graphics/iOS/icons/iOS-7.1/Icon-76.png" gap:platform="ios" width="76" height="76" />

              <icon src="graphics/iOS/icons/iOS-7.1/Icon-76@2x.png" gap:platform="ios" width="152" height="152" />

              <icon src="graphics/iOS/icons/iOS-7.1/Icon-Small-40.png" gap:platform="ios" width="40" height="40" />

              <icon src="graphics/iOS/icons/iOS-7.1/Icon-Small-40@2x.png" gap:platform="ios" width="80" height="80" />

              <icon src="graphics/iOS/icons/iOS-7.1/Icon-Small-50.png" gap:platform="ios" width="50" height="50" />

              <icon src="graphics/iOS/icons/iOS-7.1/Icon-Small-50@2x.png" gap:platform="ios" width="100" height="100" />

              <icon src="graphics/iOS/icons/iOS-7.1/Icon-Small.png" gap:platform="ios" width="29" height="29" />

              <icon src="graphics/iOS/icons/iOS-7.1/Icon-Small@2x.png" gap:platform="ios" width="58" height="58" />

              <icon src="graphics/iOS/icons/iOS-7.1/Icon.png" gap:platform="ios" width="57" height="57" />

              <icon src="graphics/iOS/icons/iOS-7.1/Icon@2x.png" gap:platform="ios" width="114" height="114" />

              <icon src="graphics/iOS/icons/iOS-8/Icon-60@3x.png" gap:platform="ios" width="180" height="180" />

              <icon src="graphics/iOS/icons/iOS-8/Icon-Small-40@3x.png" gap:platform="ios" width="120" height="120" />

              <icon src="graphics/iOS/icons/iOS-8/Icon-Small@3x.png" gap:platform="ios" width="87" height="87" />

               

              <gap:splash src="graphics/iOS/splash_screens/Default@2x~iphone.png" gap:platform="ios" width="640" height="960" />

              <gap:splash src="graphics/iOS/splash_screens/Default-568h@2x~iphone.png" gap:platform="ios" width="640" height="1136" />

              <gap:splash src="graphics/iOS/splash_screens/Default-667h@2x~iphone.png" gap:platform="ios" width="750" height="1334" />

              <gap:splash src="graphics/iOS/splash_screens/Default-Portrait~ipad.png" gap:platform="ios" width="768" height="1024" />

              <gap:splash src="graphics/iOS/splash_screens/Default-Landscape~ipad.png" gap:platform="ios" width="1024" height="768" />

              <gap:splash src="graphics/iOS/splash_screens/Default-Portrait-736h@3x~iphone.png" gap:platform="ios" width="1242" height="2208" />

              <gap:splash src="graphics/iOS/splash_screens/Default-Landscape-736h@3x~iphone.png" gap:platform="ios" width="1242" height="2208" />

              <gap:splash src="graphics/iOS/splash_screens/Default-Portrait@2x~ipad.png" gap:platform="ios" width="1536" height="2048" />

              <gap:splash src="graphics/iOS/splash_screens/Default-Landscape@2x~ipad.png" gap:platform="ios" width="2048" height="1536" />

               

              <description>

              Watudu App

              </description>

               

              <author href="" email="alexander.landis@watudu.com">

              Alexander Landis

              </author>

               

              <preference name="target-device" value="universal" />

              <preference name="android-installLocation" value="auto" />

               

              <feature name="InAppBrowser">

                <param name="android-package" value="org.apache.cordova.InAppBrowser"/>

              </feature>

              <feature name="InAppBrowser">

                <param name="ios-package" value="CDVInAppBrowser" />

              </feature>

               

              <preference name="permissions" value="none" />

               

              <plugin name="cordova-plugin-geolocation" source="npm" />

              <plugin name="cordova-plugin-splashscreen" source="npm" />

              <plugin name="cordova-plugin-statusbar" source="npm" />

              <plugin name="cordova-plugin-whitelist" source="npm" />

              <plugin name="cordova-plugin-x-socialsharing" source="npm" />

              <plugin name="cordova-plugin-inappbrowser" source="npm" />

              <plugin name="cordova-plugin-analytics" source="npm" />

              <plugin name="cordova-plugin-analytics-adid" source="npm" />

              <plugin name="cordova-plugin-dialogs" source="npm" />

               

              <!--

              <icon src="images/logo_large_sq.png" />

              -->

               

              <access origin="*" />

              <access origin="http://*.google.com" subdomains="true" />

              <access origin="http://*.google.com" subdomains="true" />

              <access origin="https://*.google.com" subdomains="true" />

              <access origin="http://*.googleapis.com/" subdomains="true" />

              <access origin="https://*.googleapis.com/" subdomains="true" />

              <access origin="http://*.gstatic.com/" subdomains="true" />

              <access origin="https://*.gstatic.com/" subdomains="true" />

              <access origin="http://127.0.0.1*" />

               

              <preference name="phonegap-version" value="cli-6.3.0" />

               

              <platform name="android">

                  <preference name="android-build-tool" value="gradle" />

                  <preference name="FadeSplashScreen" value="false"/>

                  <preference name="ShowSplashScreenSpinner" value="false"/>

              </platform>

               

              <platform name="ios">

                  <preference name="deployment-target" value="7.1" />

                  <preference name="StatusBarOverlaysWebView" value="false" />

                  <preference name="StatusBarBackgroundColor" value="#000000" />

                  <preference name="StatusBarStyle" value="lightcontent" />

                  <preference name="FadeSplashScreen" value="false"/>

                  <preference name="ShowSplashScreenSpinner" value="false"/>

              </platform>

               

              <!--

              <feature name="debug-server" required="true">

                    <param name="domain" value="http://192.168.1.2:8080"/>

                    <param name="key" value="asd23409dflkj23"/>

              </feature>

              -->

              </widget>

              • 4. Re: Build Now Failing - Multidex Issue?
                VectorP Level 4

                Here's some feedback:

                 

                1. If you have uploaded a full Cordova project (with directories like /platforms, /plugins and/or /hooks) that's the main problem. You can't do that. PGB only wants your assets (whatever is in your /www) and your config in the same directory as your index.html

                 

                2. Remove the feature elements from your config. They should not be there.

                 

                3. The android-minSdkVersion must be at least 14, in some cases even higher.

                • 5. Re: Build Now Failing - Multidex Issue?
                  AlexanderLandis Level 1

                  Hi VectorP,

                   

                  So no, this is not a full Cordova project then.  I don't have the directories you specified.  I removed the feature elements and changed the android-minSdkVersion to 19.  I am still receiving the same error.  The code for the error and the config.xml are below:

                   

                  config.xml

                   

                  <?xml version="1.0" encoding="UTF-8" ?>

                  <widget xmlns = "http://www.w3.org/ns/widgets"

                      xmlns:gap = "http://phonegap.com/ns/1.0"

                      id        = "com.watudu"

                      version   = "1.0.4">

                   

                  <name>Watudu</name>

                   

                  <preference name="android-targetSdkVersion" value="19" />

                  <preference name="android-minSdkVersion" value="19" />

                  <preference name="SplashScreen" value="splash" />

                   

                  <icon src="icon.png" />

                  <gap:splash src="splash.png" />

                   

                  <icon src="graphics/android/icons/Icon-ldpi.png"    gap:platform="android" gap:qualifier="ldpi" />

                  <icon src="graphics/android/icons/Icon-mdpi.png"    gap:platform="android" gap:qualifier="mdpi" />

                  <icon src="graphics/android/icons/Icon-hdpi.png"    gap:platform="android" gap:qualifier="hdpi" />

                  <icon src="graphics/android/icons/Icon-xhdpi.png"   gap:platform="android" gap:qualifier="xhdpi" />

                  <icon src="graphics/android/icons/Icon-xxhdpi.png"  gap:platform="android" gap:qualifier="xxhdpi" />

                  <icon src="graphics/android/icons/Icon-xxxhdpi.png" gap:platform="android" gap:qualifier="xxxhdpi" />

                   

                  <gap:splash src="graphics/android/splash_screens/ldpi.9.png"    gap:platform="android" gap:qualifier="ldpi" />

                  <gap:splash src="graphics/android/splash_screens/mdpi.9.png"    gap:platform="android" gap:qualifier="mdpi" />

                  <gap:splash src="graphics/android/splash_screens/hdpi.9.png"    gap:platform="android" gap:qualifier="hdpi" />

                  <gap:splash src="graphics/android/splash_screens/tvdpi.9.png"   gap:platform="android" gap:qualifier="tvdpi" />

                  <gap:splash src="graphics/android/splash_screens/xhdpi.9.png"   gap:platform="android" gap:qualifier="xhdpi" />

                  <gap:splash src="graphics/android/splash_screens/xxhdpi.9.png"  gap:platform="android" gap:qualifier="xxhdpi" />

                  <gap:splash src="graphics/android/splash_screens/xxxhdpi.9.png" gap:platform="android" gap:qualifier="xxxhdpi" />

                   

                  <icon src="graphics/iOS/icons/iOS-7.1/Icon-120.png" gap:platform="ios" width="120" height="120" />

                  <icon src="graphics/iOS/icons/iOS-7.1/Icon-152.png" gap:platform="ios" width="152" height="152" />

                  <icon src="graphics/iOS/icons/iOS-7.1/Icon-16.png" gap:platform="ios" width="16" height="16" />

                  <icon src="graphics/iOS/icons/iOS-7.1/Icon-24.png" gap:platform="ios" width="24" height="24" />

                  <icon src="graphics/iOS/icons/iOS-7.1/Icon-32.png" gap:platform="ios" width="32" height="32" />

                  <icon src="graphics/iOS/icons/iOS-7.1/Icon-40.png" gap:platform="ios" width="40" height="40" />

                  <icon src="graphics/iOS/icons/iOS-7.1/Icon-40@2x.png" gap:platform="ios" width="80" height="80" />

                  <icon src="graphics/iOS/icons/iOS-7.1/Icon-60.png" gap:platform="ios" width="60" height="60" />

                  <icon src="graphics/iOS/icons/iOS-7.1/Icon-60@2x.png" gap:platform="ios" width="120" height="120" />

                  <icon src="graphics/iOS/icons/iOS-7.1/Icon-64.png" gap:platform="ios" width="64" height="64" />

                  <icon src="graphics/iOS/icons/iOS-7.1/Icon-72.png" gap:platform="ios" width="72" height="72" />

                  <icon src="graphics/iOS/icons/iOS-7.1/Icon-72@2x.png" gap:platform="ios" width="144" height="144" />

                  <icon src="graphics/iOS/icons/iOS-7.1/Icon-76.png" gap:platform="ios" width="76" height="76" />

                  <icon src="graphics/iOS/icons/iOS-7.1/Icon-76@2x.png" gap:platform="ios" width="152" height="152" />

                  <icon src="graphics/iOS/icons/iOS-7.1/Icon-Small-40.png" gap:platform="ios" width="40" height="40" />

                  <icon src="graphics/iOS/icons/iOS-7.1/Icon-Small-40@2x.png" gap:platform="ios" width="80" height="80" />

                  <icon src="graphics/iOS/icons/iOS-7.1/Icon-Small-50.png" gap:platform="ios" width="50" height="50" />

                  <icon src="graphics/iOS/icons/iOS-7.1/Icon-Small-50@2x.png" gap:platform="ios" width="100" height="100" />

                  <icon src="graphics/iOS/icons/iOS-7.1/Icon-Small.png" gap:platform="ios" width="29" height="29" />

                  <icon src="graphics/iOS/icons/iOS-7.1/Icon-Small@2x.png" gap:platform="ios" width="58" height="58" />

                  <icon src="graphics/iOS/icons/iOS-7.1/Icon.png" gap:platform="ios" width="57" height="57" />

                  <icon src="graphics/iOS/icons/iOS-7.1/Icon@2x.png" gap:platform="ios" width="114" height="114" />

                   

                  <icon src="graphics/iOS/icons/iOS-8/Icon-60@3x.png" gap:platform="ios" width="180" height="180" />

                  <icon src="graphics/iOS/icons/iOS-8/Icon-Small-40@3x.png" gap:platform="ios" width="120" height="120" />

                  <icon src="graphics/iOS/icons/iOS-8/Icon-Small@3x.png" gap:platform="ios" width="87" height="87" />

                   

                  <gap:splash src="graphics/iOS/splash_screens/Default@2x~iphone.png" gap:platform="ios" width="640" height="960" />

                  <gap:splash src="graphics/iOS/splash_screens/Default-568h@2x~iphone.png" gap:platform="ios" width="640" height="1136" />

                  <gap:splash src="graphics/iOS/splash_screens/Default-667h@2x~iphone.png" gap:platform="ios" width="750" height="1334" />

                  <gap:splash src="graphics/iOS/splash_screens/Default-Portrait~ipad.png" gap:platform="ios" width="768" height="1024" />

                  <gap:splash src="graphics/iOS/splash_screens/Default-Landscape~ipad.png" gap:platform="ios" width="1024" height="768" />

                  <gap:splash src="graphics/iOS/splash_screens/Default-Portrait-736h@3x~iphone.png" gap:platform="ios" width="1242" height="2208" />

                  <gap:splash src="graphics/iOS/splash_screens/Default-Landscape-736h@3x~iphone.png" gap:platform="ios" width="1242" height="2208" />

                  <gap:splash src="graphics/iOS/splash_screens/Default-Portrait@2x~ipad.png" gap:platform="ios" width="1536" height="2048" />

                  <gap:splash src="graphics/iOS/splash_screens/Default-Landscape@2x~ipad.png" gap:platform="ios" width="2048" height="1536" />

                   

                  <description>

                  Watudu App

                  </description>

                   

                  <author href="" email="alexander.landis@watudu.com">

                  Alexander Landis

                  </author>

                   

                  <preference name="target-device" value="universal" />

                  <preference name="android-installLocation" value="auto" />

                   

                  <preference name="permissions" value="none" />

                   

                  <plugin name="cordova-plugin-geolocation" source="npm" />

                  <plugin name="cordova-plugin-splashscreen" source="npm" />

                  <plugin name="cordova-plugin-statusbar" source="npm" />

                  <plugin name="cordova-plugin-whitelist" source="npm" />

                  <plugin name="cordova-plugin-x-socialsharing" source="npm" />

                  <plugin name="cordova-plugin-inappbrowser" source="npm" />

                  <plugin name="cordova-plugin-analytics" source="npm" />

                  <plugin name="cordova-plugin-analytics-adid" source="npm" />

                  <plugin name="cordova-plugin-dialogs" source="npm" />

                   

                  <!--

                  <icon src="images/logo_large_sq.png" />

                  -->

                   

                  <access origin="*" />

                  <access origin="http://*.google.com" subdomains="true" />

                  <access origin="http://*.google.com" subdomains="true" />

                  <access origin="https://*.google.com" subdomains="true" />

                  <access origin="http://*.googleapis.com/" subdomains="true" />

                  <access origin="https://*.googleapis.com/" subdomains="true" />

                  <access origin="http://*.gstatic.com/" subdomains="true" />

                  <access origin="https://*.gstatic.com/" subdomains="true" />

                  <access origin="http://127.0.0.1*" />

                   

                  <preference name="phonegap-version" value="cli-6.3.0" />

                   

                  <platform name="android">

                      <preference name="android-build-tool" value="gradle" />

                      <preference name="FadeSplashScreen" value="false"/>

                      <preference name="ShowSplashScreenSpinner" value="false"/>

                  </platform>

                   

                  <platform name="ios">

                      <preference name="deployment-target" value="7.1" />

                      <preference name="StatusBarOverlaysWebView" value="false" />

                      <preference name="StatusBarBackgroundColor" value="#000000" />

                      <preference name="StatusBarStyle" value="lightcontent" />

                      <preference name="FadeSplashScreen" value="false"/>

                      <preference name="ShowSplashScreenSpinner" value="false"/>

                  </platform>

                   

                  </widget>

                   

                  LOG

                   

                  Build Date: 2016-08-09 16:42:12 +0000

                  Observed package id 'build-tools;23.0.1' in inconsistent location '/android-sdk/build-tools/current' (Expected '/android-sdk/build-tools/23.0.1')

                  Already observed package id 'build-tools;23.0.1' in '/android-sdk/build-tools/23.0.1'. Skipping duplicate at '/android-sdk/build-tools/current'

                  Incremental java compilation is an incubating feature.

                  :preBuild UP-TO-DATE

                  :preReleaseBuild UP-TO-DATE

                  :checkReleaseManifest

                  :preDebugBuild UP-TO-DATE

                  :CordovaLib:preBuild UP-TO-DATE

                  :CordovaLib:preDebugBuild UP-TO-DATE

                  :CordovaLib:compileDebugNdk UP-TO-DATE

                  :CordovaLib:compileLint

                  :CordovaLib:copyDebugLint UP-TO-DATE

                  :CordovaLib:mergeDebugProguardFiles

                  :CordovaLib:packageDebugRenderscript UP-TO-DATE

                  :CordovaLib:checkDebugManifest

                  :CordovaLib:prepareDebugDependencies

                  :CordovaLib:compileDebugRenderscript

                  :CordovaLib:generateDebugResValues

                  :CordovaLib:generateDebugResources

                  :CordovaLib:packageDebugResources

                  :CordovaLib:compileDebugAidl

                  :CordovaLib:generateDebugBuildConfig

                  :CordovaLib:mergeDebugShaders

                  :CordovaLib:compileDebugShaders

                  :CordovaLib:generateDebugAssets

                  :CordovaLib:mergeDebugAssets

                  :CordovaLib:processDebugManifest

                  :CordovaLib:processDebugResources

                  :CordovaLib:generateDebugSources

                  :CordovaLib:incrementalDebugJavaCompilationSafeguard

                  :CordovaLib:compileDebugJavaWithJavac

                  :CordovaLib:compileDebugJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).

                  Note: Some input files use or override a deprecated API.

                  Note: Recompile with -Xlint:deprecation for details.

                  :CordovaLib:processDebugJavaRes UP-TO-DATE

                  :CordovaLib:transformResourcesWithMergeJavaResForDebug

                  :CordovaLib:transformClassesAndResourcesWithSyncLibJarsForDebug

                  :CordovaLib:mergeDebugJniLibFolders

                  :CordovaLib:transformNative_libsWithMergeJniLibsForDebug

                  :CordovaLib:transformNative_libsWithSyncJniLibsForDebug

                  :CordovaLib:bundleDebug

                  :CordovaLib:preReleaseBuild UP-TO-DATE

                  :CordovaLib:compileReleaseNdk UP-TO-DATE

                  :CordovaLib:copyReleaseLint UP-TO-DATE

                  :CordovaLib:mergeReleaseProguardFiles

                  :CordovaLib:packageReleaseRenderscript UP-TO-DATE

                  :CordovaLib:checkReleaseManifest

                  :CordovaLib:prepareReleaseDependencies

                  :CordovaLib:compileReleaseRenderscript

                  :CordovaLib:generateReleaseResValues

                  :CordovaLib:generateReleaseResources

                  :CordovaLib:packageReleaseResources

                  :CordovaLib:compileReleaseAidl

                  :CordovaLib:generateReleaseBuildConfig

                  :CordovaLib:mergeReleaseShaders

                  :CordovaLib:compileReleaseShaders

                  :CordovaLib:generateReleaseAssets

                  :CordovaLib:mergeReleaseAssets

                  :CordovaLib:processReleaseManifest

                  :CordovaLib:processReleaseResources

                  :CordovaLib:generateReleaseSources

                  :CordovaLib:incrementalReleaseJavaCompilationSafeguard

                  :CordovaLib:compileReleaseJavaWithJavac

                  :CordovaLib:compileReleaseJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).

                  Note: Some input files use or override a deprecated API.

                  Note: Recompile with -Xlint:deprecation for details.

                  :CordovaLib:processReleaseJavaRes UP-TO-DATE

                  :CordovaLib:transformResourcesWithMergeJavaResForRelease

                  :CordovaLib:transformClassesAndResourcesWithSyncLibJarsForRelease

                  :CordovaLib:mergeReleaseJniLibFolders

                  :CordovaLib:transformNative_libsWithMergeJniLibsForRelease

                  :CordovaLib:transformNative_libsWithSyncJniLibsForRelease

                  :CordovaLib:bundleRelease

                  :prepareComAndroidSupportAppcompatV72300Library

                  :prepareComAndroidSupportMediarouterV72300Library

                  :prepareComAndroidSupportSupportV42300Library

                  :prepareComGoogleAndroidGmsPlayServices920Library

                  :prepareComGoogleAndroidGmsPlayServicesAds920Library

                  :prepareComGoogleAndroidGmsPlayServicesAdsLite920Library

                  :prepareComGoogleAndroidGmsPlayServicesAnalytics920Library

                  :prepareComGoogleAndroidGmsPlayServicesAnalyticsImpl920Library

                  :prepareComGoogleAndroidGmsPlayServicesAppindexing920Library

                  :prepareComGoogleAndroidGmsPlayServicesAppinvite920Library

                  :prepareComGoogleAndroidGmsPlayServicesAuth920Library

                  :prepareComGoogleAndroidGmsPlayServicesAuthBase920Library

                  :prepareComGoogleAndroidGmsPlayServicesBase920Library

                  :prepareComGoogleAndroidGmsPlayServicesBasement920Library

                  :prepareComGoogleAndroidGmsPlayServicesCast920Library

                  :prepareComGoogleAndroidGmsPlayServicesCastFramework920Library

                  :prepareComGoogleAndroidGmsPlayServicesClearcut920Library

                  :prepareComGoogleAndroidGmsPlayServicesContextmanager920Library

                  :prepareComGoogleAndroidGmsPlayServicesDrive920Library

                  :prepareComGoogleAndroidGmsPlayServicesFitness920Library

                  :prepareComGoogleAndroidGmsPlayServicesGames920Library

                  :prepareComGoogleAndroidGmsPlayServicesGass920Library

                  :prepareComGoogleAndroidGmsPlayServicesGcm920Library

                  :prepareComGoogleAndroidGmsPlayServicesIdentity920Library

                  :prepareComGoogleAndroidGmsPlayServicesIid920Library

                  :prepareComGoogleAndroidGmsPlayServicesLocation920Library

                  :prepareComGoogleAndroidGmsPlayServicesMaps920Library

                  :prepareComGoogleAndroidGmsPlayServicesNearby920Library

                  :prepareComGoogleAndroidGmsPlayServicesPanorama920Library

                  :prepareComGoogleAndroidGmsPlayServicesPlaces920Library

                  :prepareComGoogleAndroidGmsPlayServicesPlus920Library

                  :prepareComGoogleAndroidGmsPlayServicesSafetynet920Library

                  :prepareComGoogleAndroidGmsPlayServicesTagmanager920Library

                  :prepareComGoogleAndroidGmsPlayServicesTagmanagerApi920Library

                  :prepareComGoogleAndroidGmsPlayServicesTasks920Library

                  :prepareComGoogleAndroidGmsPlayServicesVision920Library

                  :prepareComGoogleAndroidGmsPlayServicesWallet920Library

                  :prepareComGoogleAndroidGmsPlayServicesWearable920Library

                  :prepareComGoogleFirebaseFirebaseAnalytics920Library

                  :prepareComGoogleFirebaseFirebaseAnalyticsImpl920Library

                  :prepareComGoogleFirebaseFirebaseAuth920Library

                  :prepareComGoogleFirebaseFirebaseAuthCommon920Library

                  :prepareComGoogleFirebaseFirebaseAuthModule920Library

                  :prepareComGoogleFirebaseFirebaseCommon920Library

                  :prepareComGoogleFirebaseFirebaseConfig920Library

                  :prepareComGoogleFirebaseFirebaseCrash920Library

                  :prepareComGoogleFirebaseFirebaseDatabase920Library

                  :prepareComGoogleFirebaseFirebaseDatabaseConnection920Library

                  :prepareComGoogleFirebaseFirebaseIid920Library

                  :prepareComGoogleFirebaseFirebaseMessaging920Library

                  :prepareComGoogleFirebaseFirebaseStorage920Library

                  :prepareComGoogleFirebaseFirebaseStorageCommon920Library

                  :prepareProjectCordovaLibUnspecifiedReleaseLibrary

                  :prepareReleaseDependencies

                  :compileReleaseAidl

                  :compileReleaseRenderscript

                  :generateReleaseBuildConfig

                  :mergeReleaseShaders

                  :compileReleaseShaders

                  :generateReleaseAssets

                  :mergeReleaseAssets

                  :generateReleaseResValues

                  :generateReleaseResources

                  :mergeReleaseResources

                  :processReleaseManifest

                  :processReleaseResources

                  :generateReleaseSources

                  :incrementalReleaseJavaCompilationSafeguard

                  :compileReleaseJavaWithJavac

                  :compileReleaseJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).

                  Note: Some input files use or override a deprecated API.

                  Note: Recompile with -Xlint:deprecation for details.

                  :compileReleaseNdk UP-TO-DATE

                  :compileReleaseSources

                  :prePackageMarkerForRelease

                  :transformClassesWithDexForRelease

                  Running dex in-process requires build tools 23.0.2.

                  For faster builds update this project to use the latest build tools.

                  Dex: The number of method references in a .dex file cannot exceed 64K.

                  Learn how to resolve this issue at https://developer.android.com/tools/building/multidex.html

                    UNEXPECTED TOP-LEVEL EXCEPTION:

                    com.android.dex.DexIndexOverflowException: method ID not in [0, 0xffff]: 65536

                    at com.android.dx.merge.DexMerger$6.updateIndex(DexMerger.java:502)

                    at com.android.dx.merge.DexMerger$IdMerger.mergeSorted(DexMerger.java:277)

                    at com.android.dx.merge.DexMerger.mergeMethodIds(DexMerger.java:491)

                    at com.android.dx.merge.DexMerger.mergeDexes(DexMerger.java:168)

                    at com.android.dx.merge.DexMerger.merge(DexMerger.java:189)

                    at com.android.dx.command.dexer.Main.mergeLibraryDexBuffers(Main.java:502)

                    at com.android.dx.command.dexer.Main.runMonoDex(Main.java:334)

                    at com.android.dx.command.dexer.Main.run(Main.java:277)

                    at com.android.dx.command.dexer.Main.main(Main.java:245)

                    at com.android.dx.command.Main.main(Main.java:106)

                    

                  :transformClassesWithDexForRelease FAILED

                   

                  BUILD FAILED

                   

                  Total time: 2 mins 44.298 secs

                   

                  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.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.111.x86_64/bin/java'' finished with non-zero exit value 2

                   

                  * Try:

                  Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

                  Error: /project/gradlew: Command failed with exit code 1 Error output:

                  Note: Some input files use or override a deprecated API.

                  Note: Recompile with -Xlint:deprecation for details.

                  Note: Some input files use or override a deprecated API.

                  Note: Recompile with -Xlint:deprecation for details.

                  Note: Some input files use or override a deprecated API.

                  Note: Recompile with -Xlint:deprecation for details.

                  Dex: The number of method references in a .dex file cannot exceed 64K.

                  Learn how to resolve this issue at https://developer.android.com/tools/building/multidex.html

                    UNEXPECTED TOP-LEVEL EXCEPTION:

                    com.android.dex.DexIndexOverflowException: method ID not in [0, 0xffff]: 65536

                    at com.android.dx.merge.DexMerger$6.updateIndex(DexMerger.java:502)

                    at com.android.dx.merge.DexMerger$IdMerger.mergeSorted(DexMerger.java:277)

                    at com.android.dx.merge.DexMerger.mergeMethodIds(DexMerger.java:491)

                    at com.android.dx.merge.DexMerger.mergeDexes(DexMerger.java:168)

                    at com.android.dx.merge.DexMerger.merge(DexMerger.java:189)

                    at com.android.dx.command.dexer.Main.mergeLibraryDexBuffers(Main.java:502)

                    at com.android.dx.command.dexer.Main.runMonoDex(Main.java:334)

                    at com.android.dx.command.dexer.Main.run(Main.java:277)

                    at com.android.dx.command.dexer.Main.main(Main.java:245)

                    at com.android.dx.command.Main.main(Main.java:106)

                    

                   

                  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.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.111.x86_64/bin/java'' finished with non-zero exit value 2

                   

                  * Try:

                  Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

                    at ChildProcess.whenDone (/project/cordova/node_modules/cordova-common/src/superspawn.js:169:23)

                    at emitTwo (events.js:87:13)

                    at ChildProcess.emit (events.js:172:7)

                    at maybeClose (internal/child_process.js:818:16)

                    at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)

                  • 6. Re: Build Now Failing - Multidex Issue?
                    VectorP Level 4

                    I think this is the key:

                     

                    Running dex in-process requires build tools 23.0.2.

                     

                    Looks like one of the plugins requires 23.0.2, which is not present in cli-6.3.0

                    If I were you, I would remove the plugins one by one and see what the problem plugin is. My guess would be the 'analytics' plugins.

                    If they are indeed problematic, try specifying a previous version of them and rebuild.

                     

                    Sorry for not being more specific, but this is all I can currently come up with.

                    1 person found this helpful
                    • 7. Re: Build Now Failing - Multidex Issue?
                      AlexanderLandis Level 1

                      Hi VectorP,

                       

                      Yeah, you're right.  It was the Analytics plugins.  I discovered the problem a bit ago.  I switched to a different analytics plugin. Seems to be working fine now.

                       

                      Thanks you for the help!

                       

                      Alex

                      • 8. Re: Build Now Failing - Multidex Issue?
                        georgew76584710 Level 1

                        Hi Alexander,

                         

                        I am also now having this problem, and build succeeds if I remove my dependency on cordova-plugin-analytics-adid. Do you know if there's another plugin I can easily swap out to still get the Advertising ID collection? Or some way of getting this plugin to work?

                         

                        I have tried reducing the version of cordova-plugin-analytics-adid to 1.1.1 but no luck, I get

                        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.DexIndexOverflowException: method ID not in [0, 0xffff]: 65536