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

Cordova fails #128

Open
dnish opened this issue Oct 6, 2015 · 6 comments
Open

Cordova fails #128

dnish opened this issue Oct 6, 2015 · 6 comments

Comments

@dnish
Copy link

dnish commented Oct 6, 2015

Hello,
when adding your package, I get the following error on build:

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)


FAILURE: Build failed with an exception.

It has something to do with phonegap-plugin-push. I got the same error when I only add that Cordova plugin to my project. I'm using Meteor 1.2

@raix
Copy link
Collaborator

raix commented Oct 6, 2015

Are you using push 3.x?

@dnish
Copy link
Author

dnish commented Oct 6, 2015

Hi,
yeah, I've used 3.0.0. Think it has something to do with phonegap/phonegap-plugin-push#199

@ghost
Copy link

ghost commented Oct 8, 2015

Are you also using the cordova facebook pugin? Because Cordova facebook uses android support v4 while phonegap push uses v13 and this causes that DexException.

@dnish
Copy link
Author

dnish commented Oct 8, 2015

@kimeshan-gleat Nope, I'm using some other plugins like Local Notification. I know that my Meteor app loads "android-support-v4" while building the app, I'll later check which plugin causes the the issue. Thank you for the information.

@ghost
Copy link

ghost commented Oct 8, 2015

@dnish
Copy link
Author

dnish commented Oct 8, 2015

In my case, I've removed https://github.com/katzer/cordova-plugin-local-notifications - is there a way to fire local notification with the "raix:push" plugin? I'm using GCM only when the user is offline and want to fire a notification without GCM when he is online.

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

No branches or pull requests

2 participants