【发布时间】:2017-07-29 09:36:54
【问题描述】:
我正在使用 Xamarin-Android 制作应用程序,因此我需要将 Build Action 设置为我的 google-services.json 文件,但没有 GoogleServicesJson 这样的属性,当我尝试编写它时,它向我展示了一个例外:
“System.Runtime.InteropServices.ExternalException”类型的异常 被扔了。
我尝试保存并重新启动 Visual Studio,但没有解决问题。
如果你知道如何解决这个问题,请帮助我! :)
That's the file I'm clicking on
【问题讨论】:
-
我在整个解决方案中添加了屏幕截图,因此您可以看到我正在单击 Xamarin.Android 项目中的文件。 :)
-
@SushiHangover 是的,但是尝试在VS 2015中这样做,没有区别
-
@SushiHangover 我加了 Xamarin.Firebase.Messaging,以为就够了。但是现在当我添加 Xamarin.GooglePlayServices.Basement 时可以设置它,非常感谢! :D
-
尝试右键单击文件/属性/构建actoin/googleservicesjson - 为我修复它。
标签: xamarin push-notification xamarin.android google-play-services