Search This Blog

Sunday, August 9, 2020

React Native common errors

Task :app:transformClassesAndResourcesWithR8ForRelease FAILED R8: Program type already present: io.invertase.firebase.BuildConfig

Check the package.json and remove  extra react native packages for firebase.

Could be possible that while trying out firebase integration you have installed multiple versions via npm install.

Error 2
This app is not authorized to use Firebase Authentication.Please verify that the correct package name and SHA-1 are configured in the Firebase Console

You need to have the SHA1 of your debug keystore if you are doing testing in debug mode.
Even if you have configured to use Google play signing , atleast for debug you need a seperate key.

//cd android/app
//keytool -list -v -keystore debug.keystore  -alias android  

password will  most probably be android.

Copy this fingerprint from the debug keystore to your firebase console and test your app.

While moving to prod, copy the sha1 from google play console and update it in the firebase console.




No comments:

Post a Comment