【发布时间】:2016-11-18 09:50:04
【问题描述】:
我正在尝试使用newly released Firebase Messaging Nuget for Android 参考this sample,上面写着:
确保您已下载自己的配置(google-services.json 文件)文件并使用“GoogleServicesJson”构建操作将其添加到您的应用项目中。
我已经下载了文件并将其添加到项目中,但无法执行 GoogleServiceJson 类型的构建操作,我缺少什么?
因为我遇到了编译问题 if (GetString(Resource.String.google_app_id) == "YOUR-APP-ID") 因为应用程序无法找到名为 google_app_id 的资源字符串。
有人可以帮我了解缺少什么吗? 谢谢
【问题讨论】:
-
昨天遇到同样的错误 - 清理并重建然后尝试 - 如果不可见则重新启动 VS
-
如果有解析异常 - 确保 google-services.json 编码为“UTF-8 without BOM”
标签: xamarin.android firebase-cloud-messaging