简体   繁体   English

文件 google-services.json 丢失。 没有它,Google 服务插件就无法运行。 搜索位置:

[英]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我正在尝试将我的应用添加到 Firebase,但它一直在说

> 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)我的应用程序版本是 (ionic-4)

Its because you are using firebase plugin in ionic, correct me if I'm wrong.这是因为您在 ionic 中使用了 firebase 插件,如果我错了,请纠正我。 I had this issue once i was implementing firebase push notification in ionic app.一旦我在 ionic 应用程序中实施 firebase 推送通知,我就遇到了这个问题。 Simply what i did was Copied google-services.json to below paths我所做的就是将google-services.json复制到以下路径

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

Then i build my ionic app and it successfully build unsigned apk.然后我构建了我的 ionic 应用程序并成功构建了未签名的 apk。

Only Copy google-services.json to the below paths只将google-services.json复制到以下路径

platforms/android/app

No need to copy it to any other folders无需将其复制到任何其他文件夹

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何使用最新的谷歌身份服务在 Angular 2+ 中实现谷歌登录 - How to Implement Google Sign in in Angular 2+, with the latest google Identity Services NativeScript | 无法运行Android应用:请通过更新google-services插件的版本来解决版本冲突 - NativeScript | Can't run Android app: Please fix the version conflict either by updating the version of the google-services plugin Angular 4在不使用服务的情况下从另一个组件执行功能 - Angular 4 execute function from another component without using Services Angular 4 Services本地json文件显示未定义结果 - Angular 4 services local json file shows undefined results 注意Angular 2服务功能的变化 - Watch for changes in Angular 2 services function 找不到与com.google.android.gms:play-services-gcm:12+( - Could not find any version that matches com.google.android.gms:play-services-gcm:12+ ( 如何在 cordova 应用程序上实现没有 googleplus 插件的 Google OAuth 登录? - How to implement Google OAuth Login without googleplus plugin on cordova app? 无法使用可观察值分配给服务局部变量 - Cannot assign to a services local variable using observables 使用服务使用angular 7遍历json - Iterate over json with angular 7 using services Angular 2-在组件之间交换数据(无服务) - Angular 2 - Exchanging data among components (without services)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM