Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build bug with Cordova 5.1.1 #676

Closed
calebeaires opened this issue Sep 17, 2015 · 6 comments
Closed

Build bug with Cordova 5.1.1 #676

calebeaires opened this issue Sep 17, 2015 · 6 comments

Comments

@calebeaires
Copy link

Execution failed for task ':dexDebug'.
> com.android.ide.common.internal.LoggedErrorException: Failed to run command:
    /Users/calebeaires/Android/sdk/build-tools/23.0.1/dx --dex --no-optimize --output /Users/calebeaires/Sites/nature/platforms/android/build/intermediates/dex/debug --input-list=/Users/calebeaires/Sites/nature/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 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: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)

@colonelchlorine
Copy link

I'm also getting a build bug with 5.1.1 for Android. It reads like this though:

platforms/android/src/de/appplant/cordova/plugin/localnotification/LocalNotification.java:495: error: cannot find symbol
    webView.evaluateJavascript(js, null);
           ^
symbol:   method evaluateJavascript(String,<null>)
location: variable webView of type CordovaWebView

@colonelchlorine
Copy link

Nm, that seems to match with case #655

@calebeaires
Copy link
Author

@roysG
Copy link

roysG commented Sep 19, 2015

sorry, but i get error:

FAILURE: Build failed with an exception.

@katzer
Copy link
Owner

katzer commented Dec 9, 2015

Build failures with cordova build android have been fixed within the last commits and minor updates.

@calebeaires

Execution failed for task ':dexDebug'.

Can also be a problem with Push Plug-in or Facebook Plug-in

@roysG

Could not find any version that matches com.android.support:support-v4:+

Sounds like you haven't installed the Android Support Repository

@bluesliverx
Copy link

Future note for self: this could also be caused by the crosswalk plugin on phonegap build which at points has included the support lib in its own jar file. This has been fixed as part of a PGB-based crosswalk plugin: phonegap/phonegap-plugin-push#199

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants