- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Intel XDK version 3400
Had 1 successful build and made minor changes and cannot seem to get successful build. I was getting this error before and I just retried a few times before the 1 successful build.
Any help is appreciated.
Error message which is in attachment:
:preDexArmv7Release :dexArmv7Release UNEXPECTED TOP-LEVEL EXCEPTION: com.android.dex.DexException: Multiple dex files define Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompatIcs; at com.android.dx.merge.DexMerger.readSortableTypes(DexMerger.java:596) at com.android.dx.merge.DexMerger.getSortedTypes(DexMerger.java:554) at com.android.dx.merge.DexMerger.mergeClassDefs(DexMerger.java:535) at com.android.dx.merge.DexMerger.mergeDexes(DexMerger.java:171) at com.android.dx.merge.DexMerger.merge(DexMerger.java:189) at com.android.dx.command.dexer.Main.mergeLibraryDexBuffers(Main.java:454) at com.android.dx.command.dexer.Main.runMonoDex(Main.java:303) at com.android.dx.command.dexer.Main.run(Main.java:246) at com.android.dx.command.dexer.Main.main(Main.java:215) at com.android.dx.command.Main.main(Main.java:106) FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':dexArmv7Release'. > com.android.ide.common.internal.LoggedErrorException: Failed to run command: .../android-sdk/build-tools/21.1.2/dx --dex --output .../cordova_project/platforms/android/build/intermediates/dex/armv7/release --input-list=.../cordova_project/platforms/android/build/intermediates/tmp/dex/armv7/release/inputList.txt Error Code: 2 Output: UNEXPECTED TOP-LEVEL EXCEPTION: com.android.dex.DexException: Multiple dex files define Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompatIcs; at com.android.dx.merge.DexMerger.readSortableTypes(DexMerger.java:596) at com.android.dx.merge.DexMerger.getSortedTypes(DexMerger.java:554) at com.android.dx.merge.DexMerger.mergeClassDefs(DexMerger.java:535) at com.android.dx.merge.DexMerger.mergeDexes(DexMerger.java:171) at com.android.dx.merge.DexMerger.merge(DexMerger.java:189) at com.android.dx.command.dexer.Main.mergeLibraryDexBuffers(Main.java:454) at com.android.dx.command.dexer.Main.runMonoDex(Main.java:303) at com.android.dx.command.dexer.Main.run(Main.java:246) at com.android.dx.command.dexer.Main.main(Main.java:215) at com.android.dx.command.Main.main(Main.java:106) * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. BUILD FAILED
- Tags:
- HTML5
- Intel® XDK
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Christopher,
There are a few things you can try:
- I know you had a successful build, but I don't know when. So try building the sample "Hello Cordova". If it doesn't build, we might have an issue on our end.
- If it doesn't build, tell us. If it does:
- I also don't know which version of CLI you are using nor which plugins (those show in the build summary, not the build log)
- The error says there is a conflict with files. So, if you are using CLI 5.1.1, try switching to 5.4.1.
- If you still get the same build error with 5.4.1, remove your plugins, one at a time, to see which one causes the conflict
Pamela
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you Pam. I will try that. I am using plugins for vibration, facebook, twitter. I am using a Unity ads plugin for reward ads and admob with mediation for Chartboost, AdColony, and MillenialMedia. I should have mentioned that my build works when I use the same files for an iOS build. Will let you know my results. (Also, I am using CLI 5.4.1) Again, thank you.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page