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

More than one library with package name 'com.google.android.gms.license #350

Closed
ikhsanalatsary opened this issue Mar 21, 2018 · 7 comments
Closed

Comments

@ikhsanalatsary
Copy link

During the build I received this error message:

Execution failed for task ':react-native-google-signin:processReleaseResources'.

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

@bemaverick
Copy link

have the same error.
I think that's because new version of google play services

@bemaverick
Copy link

bemaverick commented Mar 21, 2018

@ikhsanalatsary
I fix this by changing
compile 'com.google.android.gms:play-services-auth:+' to
compile 'com.google.android.gms:play-services-auth:11.6.0' on node_modules/react-native-google-signin/build.gradle

@ikhsanalatsary
Copy link
Author

allprojects {
    repositories {
        configurations.all {
            resolutionStrategy {
                force "com.google.android.gms:play-services-gcm:11.8.0"
                force 'com.google.firebase:firebase-messaging:11.8.0'
                force 'com.google.firebase:firebase-core:11.8.0'
                force 'com.google.android.gms:play-services-auth:11.8.0'
            }
        }
        ....
    }
}

I add this to my android/build.gradle file fixed the issue.
refer to here and this

@lambdatoast
Copy link

lambdatoast commented Mar 21, 2018

@ikhsanalatsary

I had the same problem, and did the same thing as you, but now I get:

:react-native-firebase:compileReleaseJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).
./node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/auth/RNFirebaseAuth.java:56: error: cannot access aet
    mAuth = FirebaseAuth.getInstance();
                        ^
  class file for com.google.android.gms.internal.aet not found
Note: ./node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/auth/RNFirebaseAuth.java uses or overrides a deprecated API.

hmm.

@ikhsanalatsary
Copy link
Author

ikhsanalatsary commented Mar 22, 2018

@lambdatoast I'm not using rn-firebase. so, maybe you should check google play service version dependencies via android studio or cd android && ./gradlew -q app:dependencies. make sure it is not version 12. if not you must override via resolution above.
reference:

if it does not work, open issue in rn-firebase GitHub

@rkzhap123
Copy link

I do it as @ikhsanalatsary way.
It works But I need to do

cd android && ./gradlew clean
or
cd android && gradlew clean

Then the error disappers! 👍

@ikhsanalatsary
Copy link
Author

Yup. That's it. Must clean first

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

No branches or pull requests

5 participants