Google-signin: Program type already present: co.apptailor.googlesignin.PendingAuthRecovery

Created on 26 Feb 2020  路  5Comments  路  Source: react-native-google-signin/google-signin

Steps to Reproduce

run react-native run-android

Actual Behavior

FAILURE: Build failed with an exception.

What went wrong: Execution failed for task ':app:transformClassesWithMultidexlistForDebug'.

com.android.build.api.transform.TransformException: Error while generating the main dex list:
Error while merging dex archives: Learn how to resolve the issue at https://developer.android.com/studio/build/dependencies#duplicate_classes.

Program type already present: co.apptailor.googlesignin.BuildConfig

or sometimes:

Program type already present: co.apptailor.googlesignin.PendingAuthRecovery

Environment

Please provide

  • react-native version
    "0.61.0"
  • @react-native-community/google-signin version "3.2.0"
  • googlePlayServicesAuthVersion = "17.0.0"
  • implementation 'com.google.android.gms:play-services-base:17.1.0'
    classpath 'com.android.tools.build:gradle:3.4.2'
    classpath 'com.google.gms:google-services:4.2.0'

Most helpful comment

This error can be presented if you unfortunately install both packages.
Installed package of @react-native-community/google-signin and react-native-google-signin cause this error by RN when autolinking

All 5 comments

hello, this is duplicate of https://github.com/react-native-community/google-signin/issues/763

hope this helps
thank you

i have the same issue your suggestion didn't help

@bkmed in that case please include a runnable reproduction fo your problem, otherwise I cannot help. Thank you.

This error can be presented if you unfortunately install both packages.
Installed package of @react-native-community/google-signin and react-native-google-signin cause this error by RN when autolinking

For those who have the same issue and don't know what to do after going through all the comment above.

yarn remove react-native-google-signin

cd android && ./gradlew clean

cd ..

yarn add @react-native-community/google-signin

Was this page helpful?
0 / 5 - 0 ratings