question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Build Failed due to com.android.dex.DexException:

See original GitHub issue

I am using the plugins , cordova-plugin-playservices, cordova-plugin-google-analytics . When i add the plugn cordova-plugin-google-analytics, the build failed with the error :

UNEXPECTED TOP-LEVEL EXCEPTION:
com.android.dex.DexException: Multiple dex files define Lcom/google/android/gms/actions/ReserveIntents;
    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)

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:9

github_iconTop GitHub Comments

1reaction
victorsosacommented, Jul 10, 2016

@betorobson thanks

0reactions
fryckcommented, Mar 17, 2016

i’m still looking for a solution…

Fetching plugin “com.danielcwilson.plugins.googleanalytics” via npm Error: Failed to fetch plugin com.danielcwilson.plugins.googleanalytics via registry. Probably this is either a connection problem, or plugin spec is incorrect. Check your connection and plugin name/version/URL. Error: Registry returned 404 for GET on https://registry.npmjs.org/com.danielcwilson.plugins.googleanalytics

Build failed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Dex error On Android Studio 3.0 Beta4
I have same problem with Android Studio 3.0 beta 4. I found a solution. 1. From the Build menu, press the Clean Project...
Read more >
Multiple dex files define Lcom/google/android/gms/internal ...
I got this error after linking the library with the Android project Unknown source file : UNEXPECTED TOP-LEVEL EXCEPTION: Unknown source ...
Read more >
Gradle build fails. Multiple dex files define Lcom/google/ ...
Hello there, I am currently struggling to get my android apk to build. When I build I get an error that says: Build...
Read more >
Multiple dex files error - Can't build any longer - Older Project
Hello, I see this issue is affecting lots of older projects. I was able to completely build my Ionic project and get it...
Read more >
Multiple dex files define Lcom/google/unity/BuildConfig
Hi! I'm struggling to create a Unity build for Android (I'm new to Android as a platform). I get this error: Execution failed...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found