こちらのサイトを参考に、進めていったのですが、
「UnityにSDKを導入する」の部分で、エラーが起きます。
アプリ専用のgoogle-services.jsonをAssetフォルダに貼り付け、
ここからダウンロードしたSDKのFirebaseMessaging.unitypackageをインポートしたのですが、エラーが出ます。
Visual StudioやUnityを再起動、Windowsの再起動、SDKの再インポートもやってみましたがエラーが発生し続けます。
Unityのバージョンは2018.1です。もしかしてUnityのバージョンが新しすぎる?
コンソール↓
Unloading broken assembly Assets/Firebase/Plugins/Firebase.App.dll, this assembly can cause crashes in the runtime
Unloading broken assembly Assets/Firebase/Plugins/Firebase.Messaging.dll, this assembly can cause crashes in the runtime
Unloading broken assembly Assets/Firebase/Plugins/Firebase.Platform.dll, this assembly can cause crashes in the runtime
Generation of the Firebase Android resource file google-services.xml from Assets/google-services.json failed.
If you have not included a valid Firebase Android resources in your app it will fail to initialize.
C:/UnityProjects/Test/Assets..\Assets\Firebase\Editor\generate_xml_from_google_services_json.exe -i "Assets/google-services.json" -l
.
Microsoft.VC90.CRT.manifest could not be extracted!
You can start to diagnose this issue by executing "C:/UnityProjects/Test/Assets..\Assets\Firebase\Editor\generate_xml_from_google_services_json.exe -i "Assets/google-services.json" -l
." from the command line.
UnityEngine.Debug:LogError(Object)
Firebase.Editor.GenerateXmlFromGoogleServicesJson:RunResourceGenerator(String, String, Boolean) (at Z:/tmp/tmp.CeTbzghE2x/firebase/app/client/unity/editor/src/GenerateXmlFromGoogleServicesJson.cs:508)
Firebase.Editor.GenerateXmlFromGoogleServicesJson:ReadBundleIds(String) (at Z:/tmp/tmp.CeTbzghE2x/firebase/app/client/unity/editor/src/GenerateXmlFromGoogleServicesJson.cs:369)
Firebase.Editor.GenerateXmlFromGoogleServicesJson:UpdateConfigFileDirectory() (at Z:/tmp/tmp.CeTbzghE2x/firebase/app/client/unity/editor/src/GenerateXmlFromGoogleServicesJson.cs:261)
Firebase.Editor.GenerateXmlFromGoogleServicesJson:CheckConfiguration() (at Z:/tmp/tmp.CeTbzghE2x/firebase/app/client/unity/editor/src/GenerateXmlFromGoogleServicesJson.cs:223)
Firebase.Editor.GenerateXmlFromGoogleServicesJson:.cctor() (at Z:/tmp/tmp.CeTbzghE2x/firebase/app/client/unity/editor/src/GenerateXmlFromGoogleServicesJson.cs:83)
UnityEditor.EditorAssemblies:ProcessInitializeOnLoadAttributes()
c#
1public void Start() { 2 Firebase.Messaging.FirebaseMessaging.TokenReceived += OnTokenReceived; 3 Firebase.Messaging.FirebaseMessaging.MessageReceived += OnMessageReceived; 4}
これを追加したいのですが、エラーが原因でOnTokenReceivedとOnMessageReceivedの部分でエラーが出ます。
これらはアプリ用にFirebaseで作成したgoogle-services.jsonに問題があるのでしょうか?
どなたか解決法お願いします。

バッドをするには、ログインかつ
こちらの条件を満たす必要があります。