appodeal / cordova-plugin

Appodeal Cordova Plugin
7 stars 9 forks source link

Build failure #2

Closed psimondk closed 8 years ago

psimondk commented 8 years ago

Hi,

Unfortunately we get the following build error:

:preDexDebug :dexDebug UNEXPECTED TOP-LEVEL EXCEPTION: com.android.dex.DexIndexOverflowException: method ID not in [0, 0xffff]: 65536 at com.android.dx.merge.DexMerger$6.updateIndex(DexMerger.java:502) at com.android.dx.merge.DexMerger$IdMerger.mergeSorted(DexMerger.java:277) at com.android.dx.merge.DexMerger.mergeMethodIds(DexMerger.java:491) at com.android.dx.merge.DexMerger.mergeDexes(DexMerger.java:168) at com.android.dx.merge.DexMerger.merge(DexMerger.java:189) at com.android.dx.command.dexer.Main.mergeLibraryDexBuffers(Main.java:454) at com.android.dx.command.dexer.Main.runMonoDex(Main.java:303) at com.android.dx.command.dexer.Main.run(Main.java:246) at com.android.dx.command.dexer.Main.main(Main.java:215) at com.android.dx.command.Main.main(Main.java:106)

FAILED

FAILURE: Build failed with an exception.

BUILD FAILED

Here are the list of plugins we use:

com.appodeal.plugin 1.15.2 "Appodeal Plugin" com.phonegap.plugins.PushPlugin 2.5.0 "PushPlugin" com.rjfun.cordova.iad 2.0.4 "iAd PluginPro" com.synconset.imagepicker 1.0.7 "ImagePicker" cordova-plugin-admob-iad 1.0.6 "AdMob Mediation Adapter for iAd" cordova-plugin-admob-inmobi 1.0.3 "AdMob Mediation Adapter for InMobi" cordova-plugin-admob-mobfox 6.0.3 "AdMob Mediation Adapter for MobFox" cordova-plugin-admobpro 2.18.0 "AdMob Plugin Pro" cordova-plugin-console 1.0.3 "Console" cordova-plugin-customurlscheme 4.2.0 "Custom URL scheme" cordova-plugin-device 1.1.1 "Device" cordova-plugin-dialogs 1.2.0 "Notification" cordova-plugin-disable-bitcode 1.3.2 "DisableBitcode" cordova-plugin-email-composer 0.8.3 "EmailComposer" cordova-plugin-extension 1.5.1 "Cordova Plugin Extension" cordova-plugin-geolocation 1.0.1 "Geolocation" cordova-plugin-globalization 1.0.3 "Globalization" cordova-plugin-inappbrowser 1.3.0 "InAppBrowser" cordova-plugin-mobfox 6.0.8 "MobFox Ad" cordova-plugin-splashscreen 2.1.0 "Splashscreen" cordova-plugin-whitelist 1.2.1 "Whitelist" ionic-plugin-keyboard 2.0.1 "Keyboard" nl.x-services.plugins.socialsharing 4.3.19 "SocialSharing" onesignal-cordova-plugin 1.11.2 "OneSignal Push Notifications" org.pushandplay.cordova.apprate 1.1.7 "AppRate"

Please advise :)

Best Regards, PalleS

NazarKozak commented 8 years ago

Hi @psimondk, try installing this plugin. It should help.

psimondk commented 8 years ago

Thanks Nazar,

Should I install both plugins ?

Best Regards, Palle

On Thu, Sep 8, 2016 at 11:16 AM, Nazar Kozak notifications@github.com wrote:

Hi @psimondk https://github.com/psimondk, try installing this plugin https://github.com/NazarKozak/cordova-plugin-multidex.git. It should help.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/appodeal/cordova-plugin/issues/2#issuecomment-245540486, or mute the thread https://github.com/notifications/unsubscribe-auth/AB_iPXD7OpxRCDVxmdfY8qPsx8Ww1PbCks5qn9JfgaJpZM4J3xDu .

NazarKozak commented 8 years ago

@psimondk yes, both, second is just to enable multidex support in your project.

psimondk commented 8 years ago

Great! that did the trick :)

On Thu, Sep 8, 2016 at 12:18 PM, Nazar Kozak notifications@github.com wrote:

@psimondk https://github.com/psimondk yes, both, second is just to enable multidex support in your project.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/appodeal/cordova-plugin/issues/2#issuecomment-245555350, or mute the thread https://github.com/notifications/unsubscribe-auth/AB_iPWtTQvzYwM4I73CPF7UfK1c_LTr4ks5qn-EGgaJpZM4J3xDu .

psimondk commented 8 years ago

Hi,

Unfortunately the app crashes during load of plugins - will try to get a trace.

Brgds, Palle

On Thu, Sep 8, 2016 at 12:53 PM, Palle Simonsen p.simon.simonsen@gmail.com wrote:

Great! that did the trick :)

On Thu, Sep 8, 2016 at 12:18 PM, Nazar Kozak notifications@github.com wrote:

@psimondk https://github.com/psimondk yes, both, second is just to enable multidex support in your project.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/appodeal/cordova-plugin/issues/2#issuecomment-245555350, or mute the thread https://github.com/notifications/unsubscribe-auth/AB_iPWtTQvzYwM4I73CPF7UfK1c_LTr4ks5qn-EGgaJpZM4J3xDu .

telekosmos commented 8 years ago

Versions can be important. I had the same problem and the multidex plugin solved the issue, but mind I am using cordova-android@5.1.1, jdk 1.8.0 on OSX 10.11, along with cordova 6.2.0. I think that's all, and maybe it can help you.

LimitlessDonald commented 8 years ago

Any idea how i can integrate this plug-in using Phonegap Desktop Please help its urgent

NazarKozak commented 8 years ago

@Donald3d you are using it for both platforms or one of them? I'm not sure if iOS is working fine, will check it soon. To install it try adding <plugin spec="https://github.com/appodeal/cordova-plugin.git" />

NazarKozak commented 8 years ago

@psimondk has your problem been solved?

LimitlessDonald commented 8 years ago

@NazarKozak thank you for the reply,I am kind of few months into coding properly so I am not perfect, where should I add it ,is it in the config.XML ? after that where do I put the integration codes on appodeal website. Thanks bro

NazarKozak commented 8 years ago

@Donald3d Sorry for delay. Yes, into config.xml file.