Skip to content Skip to sidebar Skip to footer

Firebase Credentials Api Deleted Mistakenly Not Working After Creating Api Manually

Suddenly my application started throwing an error here: { 'error': { 'code': 400, 'message': 'API key expired. Please renew the API key.', 'errors': [{

Solution 1:

Step - 1. The solution is to remove firebase dependencies from the project and then invalidating caches and then clean Project. Restart android studio.

Step - 2. You have to remove some lines from Gradle files, also from the project setting -> modules -> delete each containing firebase name in it.

Step - 3. After that, remove your project from the firebase and it will show a dangerous warning. After restarting the android studio, connect firebase from the tool menu. Add the plugins that you need in the project like database, storage, auth, crashlytics, etc.

Step - 4. Then add the SHA keys (debug and release both with sha 256 also) again in the project setting of firebase otherwise you will get stuck again.

TIPS: Do not change project name or anything similar because it does not matter and doing so may cause problems. and This time do not delete the API keys from console.cloud.google.com, actually, you should not mess with the API's because we don't need to do that. Firebase automatically creates the keys and works very properly.

Post a Comment for "Firebase Credentials Api Deleted Mistakenly Not Working After Creating Api Manually"