简体   繁体   中英

File google-services.json is missing. The Google Services Plugin cannot function without it. Searched Location:

I'm trying to add my app to Firebase, but it keeps saying

> File google-services.json is missing.

Full error in the below pic:

在此处输入图片说明

even though I've added it to the right place(I have added it to root folder)

在此处输入图片说明

I read some articles but my problem still persists. Any help? My app version is (ionic-4)

Its because you are using firebase plugin in ionic, correct me if I'm wrong. I had this issue once i was implementing firebase push notification in ionic app. Simply what i did was Copied google-services.json to below paths

  • src/app
  • platforms/android
  • platforms/android/app
  • platforms/ios

Then i build my ionic app and it successfully build unsigned apk.

Only Copy google-services.json to the below paths

platforms/android/app

No need to copy it to any other folders

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM