2017-09-29 24 views
1

Unity、Androidでモバイルゲームを作成しています。Unity/Firebase - プロジェクトバンドルIDがgoogle-services.jsonファイルのバンドルIDと一致しません

今、私はfirebase分析を統合しています。

Project Bundle ID com.RetroSpirit.ToiletRush does not match any bundle IDs in your google-services.json files 
This will result in an app that will fail to initialize. 

Available Bundle IDs: 


You need to either: 
* Fix your app's bundle ID under "Player Settings --> Bundle Identifier" 
or: 
* Add another app to your firebase project 
    Goto https://firebase.google.com/docs/unity/setup#add_firebase_to_your_app_1 
    and add the new configuration file to your project. 

UnityEngine.Debug:LogError(Object) 
Firebase.Editor.GenerateXmlFromGoogleServicesJson:LogErrorIfEnabled(String) 
Firebase.Editor.GenerateXmlFromGoogleServicesJson:FindGoogleServicesFile(SortedDictionary`2, String, LogMessage, LogMessage) 
Firebase.Editor.GenerateXmlFromGoogleServicesJson:FindGoogleServicesFile(String, LogMessage, LogMessage) 
Firebase.Editor.GenerateXmlFromGoogleServicesJson:UpdateJson(Boolean, LogMessage, LogMessage) 
Firebase.Editor.GenerateXmlFromGoogleServicesJson:OnPostprocessAllAssets(String[], String[], String[], String[]) 
UnityEditor.AssetPostprocessingInternal:PostprocessAllAssets(String[], String[], String[], String[], String[]) 
UnityEditorInternal.InternalEditorUtility:ProjectWindowDrag(HierarchyProperty, Boolean) 
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr) 

ここgoogle-services.jsonの一部は、私が何を知っていない、

"client": [ 
    { 
     "client_info": { 
     "mobilesdk_app_id": "*:***********:android:****************", 
     "android_client_info": { 
      "package_name": "com.RetroSpirit.ToiletRush" 
     } 
     }, 
     "oauth_client": [ 
     { 
      "client_id": "***********-********************************.apps.googleusercontent.com", 
      "client_type": 1, 
      "android_info": { 
      "package_name": "com.RetroSpirit.ToiletRush", 
      "certificate_hash": "****************************************" 
      } 

です:Firebaseコンソール上の設定情報の後

とユニティプロジェクトにgoogle-services.jsonファイルを入れて、Unityはエラーが言っ示し私は確認する必要があります。

プロジェクトバンドルID(ビルド設定 - その他の設定 - 識別のパッケージ名)は、google-services.jsonのpackage_namesとまったく同じです。

アイデア?

答えて

0

自分自身を答えることがリトルビットおかしい...

私は誤って、問題の原因を発見しました。私のVCランタイムに何か問題がありました。​​はgoogle-services.jsonからパッケージ名を抽出できませんでした。 (vc90.crt.manifestを解凍できませんでした!)

残念ながら、Visual Studio、VC Runtime、および.netフレームワークの再インストールにもかかわらず、このランタイムエラーを修正できませんでした。最後に、私はWindows 10を再インストールしましたが、今すぐに問題が解消されました...このエラーの原因はまだ分かりません。

0

私はあなたが再インストールのWindowsすることにより、これを修正しましたが、これは他の誰がこのに実行される場合には、私はこの問題を渡しましたかであることを理解:

あなたはユニティプレーヤーの設定であなたのパッケージ名を設定していることを確認してください編集>プロジェクト設定>プレーヤー>その他の設定>識別>パッケージ名)。

Firebaseで設定したものと同じものに設定します(com.CompanyName.ProductNameのように見えます)。

はここ​​とFirebaseフォルダが資産> Firebaseに存在していることを説明するように、あなたのユニティプロジェクトにFirebase資産をインポートしていることを確認します。このフォルダの場所を変更すると、物事が壊れているようです。

関連する問題