EddyVerbruggen / cordova-plugin-googleplus

:heavy_plus_sign: Cordova plugin to login with Google Sign-In on iOS and Android
567 stars 630 forks source link

Build Failed With Exception With Phonegap-push-plugin #266

Open apurvaojas opened 7 years ago

apurvaojas commented 7 years ago

My Build is Failing with the following exception. when i removed either of plugin (googleplus or PushPlugin), it builds successfully.

:transformClassesWithJarMergingForDebug FAILED

FAILURE: Build failed with an exception.

  • What went wrong: Execution failed for task ':transformClassesWithJarMergingForDebug'. com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: com/google/android/gms/internal/zzbn.class

My Gradle Dependencies are:

dependencies { compile fileTree(dir: 'libs', include: '*.jar') // SUB-PROJECT DEPENDENCIES START debugCompile project(path: "CordovaLib", configuration: "debug") releaseCompile project(path: "CordovaLib", configuration: "release") compile "com.google.android.gms:play-services-plus:+" compile "com.google.android.gms:play-services-identity:+" compile "com.google.android.gms:play-services-location:+" compile "com.android.support:support-v13:23+" compile "com.google.android.gms:play-services-gcm:+" // SUB-PROJECT DEPENDENCIES END compile 'com.android.support:support-v4:23.0.1' compile 'com.android.support:support-v13:23.1.1' }

sammugg commented 7 years ago
  1. Make sure you have the most up to date versions of the build and platform tools. Always keep your Android SDK up to date!
  2. Make sure Cordova or whatever you're using is up to date.
  3. Can you try making a new project, adding this plugin, and building that project?
br0pi commented 7 years ago

I've the same issue. It seems a conflict between goggleplus and phonegap-push-plugin. Solutions? Thanks.

alexislg2 commented 7 years ago

Have the same issue. Cannot build my project. Any solution?

ckilee commented 6 years ago

As per: https://github.com/arnesson/cordova-plugin-firebase/issues/24 _"I changed all versions in my platforms/android/project.properties Now all libraries have the same version.

It works! :)"_