Unity 20171.1 firebase_unity_sdk_4.2.0 error: generate_xml_from_google_services_json.exe required for Firebase Android resource generation

915 views
Skip to first unread message

Mr. Calm

unread,
Oct 7, 2017, 2:27:51 PM10/7/17
to Firebase Google Group
HI there,

Unity 20171.1 
firebase_unity_sdk_4.2.0
Android Studio 2.3.2



error: generate_xml_from_google_services_json.exe required for Firebase Android resource generation

I've downloaded and installed the latest Firebase SDK for Unity.

I've got all my accounts linked and projects setup.

I followed the setup instructions here:


Then I downloaded both the GoogleService-Info.plist and google-services.json

I dragged BOTH files into the assets folder as described.

I have Python installed, and the path set in environment variables.

When I open the Firebase panel in Unity it says that "Ready to Use Firebase on IOS", but "Learn More" under Android.

I also have this error in the console:

Unable to find command line tool C:/Projects/MyGAMES/GAMES/GameImWorkingOn/Assets\..\Assets\Firebase\Editor\generate_xml_from_google_services_json.exe required for Firebase Android resource generation.

ALSO:

Project Bundle ID com.mycompany.mygame1 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
  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:ReadProjectFields()
Firebase.Editor.SettingsWindow:OnFocus()
UnityEditor.DockArea:OnEnable()

Now I've looked in the json file and it matches my info correctly, so I'm not sure what the issue is.
My Player Settings --> Bundle Identifier are also correct, as I've built and uploaded the APK file.

Is there something I missed?

Thanks in advance,



Stewart Miles

unread,
Oct 13, 2017, 9:31:13 PM10/13/17
to Firebase Google Group
Are you sure C:/Projects/MyGAMES/GAMES/GameImWorkingOn/Assets\..\Assets\Firebase\Editor\generate_xml_from_google_services_json.exe exists on your machine?  Is it possible it wasn't imported when you imported the plugin or perhaps you have some antivirus software or something else that is blocking execution of the tool?

Cheers,
Stewart

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-talk+unsubscribe@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/9e3d1cf6-26a9-4833-8d81-31957b5255f5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages