Can I initialize Firebase without using google-services.json?

前端 未结 4 2042
轻奢々
轻奢々 2020-12-08 22:49

EDIT: I should emphasize, I have flavors, for which I don\'t want to use any of these Google services, and attempting to apply the google-services plugin in such a case, wit

4条回答
  •  不思量自难忘°
    2020-12-08 23:29

    I've found interesting workaround. Try the following: put your google-services.json to any sample app google provides for Firebase integration. Compile it.

    Take a look on path app/build/generated/res/google-services/debug/values/ there should be generated values.xml file with bunch of strings mentioned in errors you described. Copy these strings to value.xml file of your project. That's it.

提交回复
热议问题