4screens/brightcove-player-cordova-plugin

Error: more than one library with package name 'com.google.android.gms'

Rajesh902 opened this issue · 2 comments

App has both urbanAirship push notification plugin and brightcove player plugin .But building an app with Android failed with below error.

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':processDebugResources'.

Error: more than one library with package name 'com.google.android.gms'

As per my understaning is both the plugin uses the same package 'com.google.android.gms'. Below is my depencies in build.gradle

dependencies {
compile fileTree(dir: 'libs', include: '*.jar')
compile 'com.android.support:support-v4:24.2.0'
compile 'com.android.support:cardview-v7:24.2.0'
compile 'com.android.support:support-annotations:24.2.0'
compile 'com.google.android.gms:play-services-gcm:[9.4.0,10['
compile 'com.google.android.gms:play-services-location:[9.4.0,10['
compile 'com.urbanairship.android:urbanairship-sdk:8.0.1'

// SUB-PROJECT DEPENDENCIES START
debugCompile project(path: "CordovaLib", configuration: "debug")
releaseCompile project(path: "CordovaLib", configuration: "release")
debugCompile project(path: "cordova-google-play-services:google-play-services_lib", configuration: "debug")
releaseCompile project(path: "cordova-google-play-services:google-play-services_lib", configuration: "release")
// SUB-PROJECT DEPENDENCIES END

}

Please help me to solve this issue.

Nothing helps... I installed this plugin and now i have same error... can't build

Hey guys!
Unfortunately I can't support this plugin anymore.
If you have any issues - PR's are highly encouraged.
If you want to join as a contributor you're very welcome!