cmackay / google-analytics-plugin

Cordova Google Analytics Plugin for Android & iOS
Apache License 2.0
89 stars 43 forks source link

Build error [UNEXPECTED TOP-LEVEL EXCEPTION] #71

Closed sandroweb closed 8 years ago

sandroweb commented 8 years ago

When I run the command $ cordova run android --verbose

image

After remove your plugin, my app compile without errors.

I'm tested with Cordova Android Engine 5.0.0 and 5.1.1. My Cordova version is 6.3.1. The minSDKVersion of my App is 15.

cmackay commented 8 years ago

I believe that means multiple plugins are conflicting. What other plugins are you using?

I see an issue on stackoverflow that might provide some possible work arounds:

http://stackoverflow.com/questions/32511242/cordova-error-on-build-only-for-android-com-android-dex-dexexception-multiple

sandroweb commented 8 years ago

I see this issue, but I need a solution to configure on config.xml, to generate the project without problems.

And I use a lot other plugins, but I need maintain these plugins.

image

You know any solution to configure the "solution" into config.xml?

cmackay commented 8 years ago

Hmm, not sure. Sorry. We can keep the issue open and maybe others might have recommendations. Thanks for the information.

petarov commented 8 years ago

Just a thought. Perhaps you should first identify which plugins are conflicting. Go to your project's plugins folder and run something like:

$ grep com.google.android.gms **/*.xml -R

Afterwards, you can check if there are any updates for the plugins that use, what seems, older gms dependencies.

sandroweb commented 8 years ago

I tried the code:

$ grep com.google.android.gms **/*.xml -R

This command show me any lines of Pushwoosh plugin. After, I refreshed the Pushwoosh plugin to work.

Thank you @petarov and @cmackay for collaboration!!! Now the Android version are building the app normaly.