'Firebase: Couldn't find registrable Android clients in project

Firebase: Couldn't find registrable Android clients in project. When i select release build type, android studio tell me "Firebase: Couldn't find registrable Android clients in project." But debug type is ok. enter image description here



Solution 1:[1]

Thanks to Angel Koh. This issue came when I kept the build variant as 'Release'. I switched it to 'Debug' and was able to connect to Firebase with that.

enter image description here

Solution 2:[2]

Try to download google-services.json from firebase project under firebase console and keep at app directory (app level). If you have not created firebase project under firebase console, then go to firebase.google.com -> login -> go to console -> create new project (follow https://firebase.google.com/docs/android/setup) -> download google-services.json -> save at app directory (app level) you can follow android studio assistant firebase steps or https://firebase.google.com/docs/android/setup

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Janaaaa
Solution 2 Vaibhav