cordova sdk

DF's Avatar

DF

19 Aug, 2015 02:13 PM

Hi,

I tried this example : https://github.com/Ubudu/Cordova-SDK
but encountered issues while building android app :

UNEXPECTED TOP-LEVEL EXCEPTION:
com.android.dex.DexException: Multiple dex files define Lcom/google/ads/AdRequest$ErrorCode;
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: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)

:dexDebug FAILED

FAILURE: Build failed with an exception.

  • What went wrong: Execution failed for task ':dexDebug'.

    com.android.ide.common.internal.LoggedErrorException: Failed to run command: /Users/admin/Library/Android/sdk/build-tools/23.0.0/dx --dex --no-optimize --output /Users/admin/lesApps/beaconApp/platforms/android/build/intermediates/dex/debug --input-list=/Users/admin/lesApps/beaconApp/platforms/android/build/intermediates/tmp/dex/debug/inputList.txt Error Code: 2 Output:

    UNEXPECTED TOP-LEVEL EXCEPTION: com.android.dex.DexException: Multiple dex files define Lcom/google/ads/AdRequest$ErrorCode; 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: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)

  • 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: 55.471 secs

/Users/admin/lesApps/beaconApp/platforms/android/cordova/node_modules/q/q.js:126 throw e; ^ Error code 1 for command: /Users/admin/lesApps/beaconApp/platforms/android/gradlew with args: cdvBuildDebug,-b,/Users/admin/lesApps/beaconApp/platforms/android/build.gradle,-Dorg.gradle.daemon=true
ERROR building one of the platforms: Error: /Users/admin/lesApps/beaconApp/platforms/android/cordova/build: Command failed with exit code 1
You may not have the required environment or OS to build this project
Error: /Users/admin/lesApps/beaconApp/platforms/android/cordova/build: Command failed with exit code 1
at ChildProcess.whenDone (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:139:23) at ChildProcess.emit (events.js:110:17) at maybeClose (child_process.js:1015:16) at Process.ChildProcess._handle.onexit (child_process.js:1087:5)

  1. Support Staff 1 Posted by francois on 19 Aug, 2015 04:48 PM

    francois's Avatar

    Hi DF,

    Thanks for the heads up. We have to update the Android SDK on the Cordova SDK which is way behind our Android SDK.
    We do not recommend using our Cordova SDK at the moment. The native Android SDK is currently being used in production in large apps.

    We will look into the error and update the SDK asap however we have very limited bandwidth. I think we could update it by first week of September, not before.

    Sorry for the inconvenience,

    Best regards,

    François

    Francois Kruta
    Co-founder & CEO,
    Ubudu,
    Paris France
    [email blocked]
    Mobile: +33 6 59 09 84 36
    Web:
    - http://www.ubudu.com

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac