run react-native run-android
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
Please provide
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
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