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

Graddle troubles like transformClassesWithDexForDebug #19

Open
rafaellop opened this issue Dec 13, 2016 · 1 comment
Open

Graddle troubles like transformClassesWithDexForDebug #19

rafaellop opened this issue Dec 13, 2016 · 1 comment

Comments

@rafaellop
Copy link

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.

rafaellop pushed a commit to rafaellop/heyzap-cordova that referenced this issue Dec 13, 2016
Having the version requirement in a complex project makes a lot troubles with building. Elaborated here: Heyzap#19
rafaellop pushed a commit to rafaellop/heyzap-cordova that referenced this issue Dec 13, 2016
@emanuelmiranda83
Copy link

I have the same issue.

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

No branches or pull requests

2 participants