Gradle Warnings: Could not find google-services.json while looking in [duplicate]

試著忘記壹切 提交于 2019-11-29 05:30:29

As per my experience, this will occur when you are using any type of service related to firebase and you have not put the google-services.json the file which we needed to use the service,

The solution is you need to get the file from firebase console and you need to put inside of your app level folder if you are creating a single project in the console for all flavor and If you are creating different one then you need to create a number of files for a number of projects or flavors.

Could not find google-services.json while looking in

According to LOGCAT, google-services.json is absent in right place (Missing).

The google-services.json file is generally placed in the app/ directory (at the root of the Android Studio app module).

For example, dogfood and release are build types.

 app/
    google-services.json
    src/dogfood/google-services.json
    src/release/google-services.json
    ...

Finally, Clean-Rebuild-Run.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!