Skip to content

Android build failed - package com.google.android.gms.license #271

@nopedev

Description

@nopedev

Hi.
I can't build project with this error.

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

Yesterday I could build my project with any problem, but suddenly today morning I can't build the project.
The sources are same with yesterday`s. I did not changed a single line.

I couldn't find any clue of package com.google.android.gms.license form google search.
I know that multiple packages using com.google.android.gms can cause dependency problem, so I configured build.gradle so that not conflict each other, and it worked till today morning.

But what iscom.google.android.gms.license ? No search results on google.

How can I fix this? Any Help?

configurations

  1. Windows 10

  2. package.json

"dependencies": {
  ...
  "react-native": "0.54.2",
  "react-native-admob": "^2.0.0-beta.3",
  ...
}
  1. Errors
FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':react-native-admob:processReleaseResources'.
> Error: more than one library with package name 'com.google.android.gms.license'
  1. build.gradle
  • in gradle.properties googlePlayServicesVersion=11.8.0
dependencies {
  ...
    compile(project(':react-native-admob')) {
       exclude group: 'com.google.android.gms'
    }
    compile "com.google.android.gms:play-services-ads:$googlePlayServicesVersion"

    compile(project(':react-native-maps')) {
        exclude group: 'com.google.android.gms'
    }
    compile "com.google.android.gms:play-services-base:$googlePlayServicesVersion"
    compile "com.google.android.gms:play-services-maps:$googlePlayServicesVersion"

    compile(project(':react-native-onesignal')) {
       exclude group: 'com.google.android.gms'
    }
    compile "com.google.android.gms:play-services-gcm:$googlePlayServicesVersion"
    compile "com.google.android.gms:play-services-analytics:$googlePlayServicesVersion"
    compile "com.google.android.gms:play-services-location:$googlePlayServicesVersion"

    compile(project(':react-native-google-sign-in')) {
        exclude group: 'com.google.android.gms'
    }
    compile "com.google.android.gms:play-services-auth:$googlePlayServicesVersion"
  ...
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions