How to add google-services.json in Android?

前端 未结 10 2168
无人及你
无人及你 2020-11-30 08:06

The error is:

File google-services.json is missing from module root folder. The Google Quickstart Plugin cannot function without it.

10条回答
  •  有刺的猬
    2020-11-30 09:02

    This error indicates your package_name in your google-services.json might be wrong. I personally had this issue when I used

    buildTypes {
        ...
    
        debug {
            applicationIdSuffix '.debug'
        }
    }
    

    in my build.gradle. So, when I wanted to debug, the name of the application was ("all of a sudden") app.something.debug instead of app.something. I was able to run the debug when I changed the said package_name...

提交回复
热议问题