com.android.ide.common.internal.LoggedErrorException: Failed to run command:
.../android-sdk/build-tools/21.1.2/dx --dex --output .../_A_podeal/platforms/android/build/intermediates/dex/armv7/release --input-list=.../_A_podeal/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/annotation/AnimRes;
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
Total time: 1 mins 50.693 secs
ERROR building one of the platforms: Error: .../_A_podeal/platforms/android/gradlew: Command failed with exit code 1
You may not have the required environment or OS to build this project
Error: .../_A_podeal/platforms/android/gradlew: Command failed with exit code 1
at ChildProcess.whenDone (.../_A_podeal/platforms/android/cordova/node_modules/cordova-common/src/superspawn.js:139:23)
at emitTwo (events.js:87:13)
at ChildProcess.emit (events.js:172:7)
at maybeClose (internal/child_process.js:821:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)[/code:goqen5h3]