Error System.FormatException Int64.Parse Input string was not in the correct format

Hello,

I got a new Macbook pro and I transferred all my old datas with a time capsule backup.

But I got these errors in the editor: Probably because I used a different Number and date format “,” instead . and space instead a “,” separator. But it seems more complicated.

I installed a GoogleAnalytics SDK and the Facebook SDK in Unity 2017.2.0.3f

System.FormatException: Input string was not in the correct format
   at System.Int64.Parse (System.String s) [0x00010] in /Users/builduser/buildslave/mono/build/mcs/class/corlib/System/Int64.cs:458 
   at System.Convert.ToInt64 (System.String value) [0x00009] in /Users/builduser/buildslave/mono/build/mcs/class/corlib/System/Convert.cs:1404 
   at Google.VersionHandler+FileMetadata.CalculateVersion (System.String versionString) [0x00000] in <filename unknown>:0 
   at Google.VersionHandler+FileMetadata.CalculateVersion () [0x00000] in <filename unknown>:0 
   at Google.VersionHandler+FileMetadataByVersion.Add (Google.FileMetadata metadata) [0x00000] in <filename unknown>:0 
   at Google.VersionHandler+FileMetadataSet.Add (Google.FileMetadata metadata) [0x00000] in <filename unknown>:0 
   at Google.VersionHandler+FileMetadataSet.ParseFromFilenames (System.String[] filenames) [0x00000] in <filename unknown>:0 
   at Google.VersionHandler.UpdateVersionedAssets (Boolean forceUpdate) [0x00000] in <filename unknown>:0 
   at Google.VersionHandler..cctor () [0x00000] in <filename unknown>:0 
UnityEditor.EditorAssemblies:ProcessInitializeOnLoadAttributes()

And

And

FormatException: Input string was not in the correct format
Rethrow as TypeInitializationException: An exception was thrown by the type initializer for Google.VersionHandler
Rethrow as TypeInitializationException: An exception was thrown by the type initializer for OneSignalEditorScriptAndroid
Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.

And

FormatException: String was not recognized as a valid DateTime.
System.DateTime.Parse (System.String s, IFormatProvider provider, DateTimeStyles styles) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System/DateTime.cs:924)
System.DateTime.Parse (System.String s, IFormatProvider provider) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System/DateTime.cs:912)
System.DateTime.Parse (System.String s) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System/DateTime.cs:907)
UnityEditor.Purchasing.PackageUpdater.CheckForUpdatePeriodically ()
UnityEditor.Purchasing.UnityIAPUpdater.CheckForUpdatePeriodically ()

SOLVED: I removed the GoogleSDK UnityPruchaser the Temp and the Library Folder then I reimported all the assets and reinstalled

1 Like

i have same problem and I’m using admob, google play games, firebase analytics and facebook. I dont have googlesdk unity pruchaser in my project. Can someone help me??? This is huge error. I cant build my game

Tap1 did u solved your problem if yes can you tell me how to fix this i am having the save problem