-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Error building app #136
Comments
This is a duplicate of the issue described at #51 DetailsThe problem is that versions <= 1.2.3 still use the android-support-v13.jar instead of using the gradle dependency, and it was known to cause issues whenever you had any other plugin or custom code that had another dependency on android-support, which would cause that "multiple dex" issue. It's been solved recently on master (6b5bebb), but a stable version hasn't been released yet with the fix, so you might wanna try installing directly from the git url pointing to the master branch. Beware though that it's considered unstable code. WorkaroundAnother way to solve it is installing whichever version you have or can, stable or not, and then you do: dependencies {
compile "com.android.support:support-v13:23+"
} The project should then compile successfully (this is how I solved it before the gradle fix), but your mileage may vary. |
I've already made the switch to gradle build in master and I will be releasing a 1.3.0 later this week. |
Hi, thanks a lot for your help. Have a nice day, |
HI, yesterday i updated to Version 1.3.0 and it works perfect! Thanks for great work. Greetings, |
I am having the same error:
However, I am running version 1.4.2 of the plugin (which is the latest). Any other suggestions on how to fix this? |
@globexdesigns Some other plugin on your application is including a .jar of android-support-v4 somewhere, and that's conflicting with what gradle dependencies generate. [if you're on unix] Please run this at the root of your cordova project to try and find it: There's 2 possible outcomes of that:
|
This thread has been automatically locked. |
Hi,
after adding the latest version of the push plugin my app fails on build.
My Versions:
cordova 5.3.1
Installed platforms: android 4.1.1
To add the plugin i used:
cordova plugin add https://github.com/phonegap/phonegap-plugin-push.git#1.2.3 (found this #1.2.3 on a closed issue)
The build fails with this error:
UNEXPECTED TOP-LEVEL EXCEPTION:
com.android.dex.DexException: Multiple dex files define Landroid/support/annotat
ion/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:50
2)
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.
Execution failed for task ':dexDebug'.
Any idea what can be the problem?
Thanks for your help,
Caipigott
The text was updated successfully, but these errors were encountered: