1 Reply Latest reply on Feb 1, 2017 10:17 AM by vangroover

    Android build failing on multiple random errors

    jenkinsc61559208

      Hi Guys,

       

      in last few days I have been experiencing that my Android build is randomly failing.

      I have tried to build older code, which was working without any issues and even that

      is failing with multiple random errors. My iPhone build is working without any issues.

       

      App ID: 2139910

       

       

      Here are 2 errors, which I have experienced today:

       

      :preDexReleaseOpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x00000000ef000000, 62914560, 0) failed; error='Cannot allocate memory' (errno=12)

      OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x00000000ef000000, 62914560, 0) failed; error='Cannot allocate memory' (errno=12)

      FAILED

       

       

      FAILURE: Build failed with an exception.

       

       

      * What went wrong:

      Execution failed for task ':preDexRelease'.

      > com.android.ide.common.internal.LoggedErrorException: Failed to run command:

        /android-sdk/build-tools/24.0.1/dx --dex --output /project/build/intermediates/pre-dexed/release/classes-fe24083014f5bc8e84aa6f5b627e64e0d6 99cf66.jar /project/build/intermediates/exploded-aar/com.android.support/support-compat/25.1.0/class es.jar

        Error Code:

        1

        Output:

        OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x00000000ef000000, 62914560, 0) failed; error='Cannot allocate memory' (errno=12)

       

      ============

       

      :preDexRelease

      :dexRelease

      UNEXPECTED TOP-LEVEL EXCEPTION:

      com.android.dex.DexException: Multiple dex files define Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompat$AccessibilityServ iceInfoVersionImpl;

        at com.android.dx.merge.DexMerger.readSortableTypes(DexMerger.java:591)

        at com.android.dx.merge.DexMerger.getSortedTypes(DexMerger.java:546)

        at com.android.dx.merge.DexMerger.mergeClassDefs(DexMerger.java:528)

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

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

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

        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)

       

       

      FAILED

       

       

      FAILURE: Build failed with an exception.

       

       

      * What went wrong:

      Execution failed for task ':dexRelease'.

      > com.android.ide.common.internal.LoggedErrorException: Failed to run command:

        /android-sdk/build-tools/24.0.1/dx --dex --output /project/build/intermediates/dex/release --input-list=/project/build/intermediates/tmp/dex/release/inputList.txt

        Error Code:

        2

        Output:

       

        UNEXPECTED TOP-LEVEL EXCEPTION:

        com.android.dex.DexException: Multiple dex files define Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompat$AccessibilityServ iceInfoVersionImpl;

        at com.android.dx.merge.DexMerger.readSortableTypes(DexMerger.java:591)

        at com.android.dx.merge.DexMerger.getSortedTypes(DexMerger.java:546)

        at com.android.dx.merge.DexMerger.mergeClassDefs(DexMerger.java:528)

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

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

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

        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)

       

       

      Thanks in advance for your help.