【问题标题】:Xamarin No Resource found that matches the given name @integer/google_play_services_versionXamarin 找不到与给定名称匹配的资源 @integer/google_play_services_version
【发布时间】:2017-05-15 21:56:10
【问题描述】:

我正在尝试开发一个应用程序,您可以在其中通过 firebase 云消息传递向用户发送推送通知。

我确实尝试了我在互联网上可以找到的所有内容,但我似乎无法解决问题。我使用 android 7.0 Nougat 编译。

我的清单文件中已经有这个:

元数据 android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version"

当我将 google play 服务导入我的项目并构建时,出现此错误。

严重性代码描述项目文件行抑制状态 错误未找到与给定名称匹配的资源(在“值”处,值为“@integer/google_play_services_version”)。 firebaseTest C:\Users\andre\onedrive\dokumenter\visual studio 2015\Projects\firebaseTest\firebaseTest\obj\Debug\android\manifest\AndroidManifest.xml 14

这个问题真的让我发疯了,如果有人能帮我解决这个问题,我会很高兴的。

提前致谢!

【问题讨论】:

    标签: xamarin xamarin.android google-play google-play-services firebase-cloud-messaging


    【解决方案1】:

    您是否已经有机会考虑通过 azure 实现它? https://docs.microsoft.com/en-us/azure/notification-hubs/xamarin-notification-hubs-push-notifications-android-gcm

    我没有尝试直接访问 firebase,但如果您想通过 google 消息发送消息,我建议您这样做。

    【讨论】:

    • 谢谢!我一定会调查的!
    猜你喜欢
    • 1970-01-01
    • 2014-07-18
    • 2015-06-16
    • 1970-01-01
    • 1970-01-01
    • 2016-11-04
    • 1970-01-01
    • 1970-01-01
    • 2021-01-22
    相关资源
    最近更新 更多