Heyzap / heyzap-cordova

Heyzap SDK for Apache Cordova
https://www.heyzap.com/
10 stars 18 forks source link

Graddle troubles like transformClassesWithDexForDebug #19

Open rafaellop opened 7 years ago

rafaellop commented 7 years ago

Is there any specific need to use the version of libraries in the dependencies for graddle on Android? At the moment the heyzap library requires 9.4.0 of the play-services library.

  compile 'com.google.android.gms:play-services-ads:9.4.0'
  compile 'com.google.android.gms:play-services-location:9.4.0'

src: https://github.com/Heyzap/heyzap-cordova/blob/master/src/android/heyzap.gradle

If a project uses different plugins with for example such a project property:

cordova.system.library.1=com.google.android.gms:play-services-plus:+

then the whole graddle build crashes with transformClassesWithDexForDebug error. Even multidex or Google-Support library installed don't help in that case.

The fix is to use + instead of version for the dependencies in the graddle project. I'll post a pull request for this but if there's a serious reason, please explain.

emanuelmiranda83 commented 7 years ago

I have the same issue.