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 this errors in the editor:
Probably because I used a different Number format , instead . and space instead a , separator.
But I tried different combinaisons.

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

System.TypeInitializationException: An exception was thrown by the type initializer for Google.VersionHandler ---> 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 
  --- End of inner exception stack trace ---
  at OneSignalEditorScriptAndroid.addGMSLibrary () [0x0000b] in /Users/Benoit/Workshop/Projets/EnigmBox-Unity/Assets/OneSignal/Editor/OneSignalEditorScript.cs:56 
  at OneSignalEditorScriptAndroid..cctor () [0x00024] in /Users/Benoit/Workshop/Projets/EnigmBox-Unity/Assets/OneSignal/Editor/OneSignalEditorScript.cs:52 
UnityEditor.EditorAssemblies:ProcessInitializeOnLoadAttributes()

And

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

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 ()

I had this issue also and i solved it thanks to ALLAH

I post the solution for people will be stuck in such as issue.

Simply, this issue had been shown up when i import facebook sdk with google ads and google play services packages.

that’s because of conflit between play services resolver but what i did simply i unchecked resolver files when i imported facebook SDK like in the following screenshot :107178-version.png

Just uncheck PlayServicesSolver in red circle.

That’s it :slight_smile:

Pretty close to the same …

Using Facebook SDK 7.10.1 and Unity 2017.2.0f3.

FormatException: Input string was not in the correct format
System.Int64.Parse (System.String s) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System/Int64.cs:458)
System.Convert.ToInt64 (System.String value) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System/Convert.cs:1404)
Google.VersionHandler+FileMetadata.CalculateVersion (System.String versionString)
Google.VersionHandler+FileMetadata.CalculateVersion ()
Google.VersionHandler+FileMetadataByVersion.Add (Google.FileMetadata metadata)
Google.VersionHandler+FileMetadataSet.Add (Google.FileMetadata metadata)
Google.VersionHandler+FileMetadataSet.ParseFromFilenames (System.String[] filenames)
Google.VersionHandler.UpdateVersionedAssets (Boolean forceUpdate)
Google.VersionHandler..cctor ()
Rethrow as TypeInitializationException: An exception was thrown by the type initializer for Google.VersionHandler
Facebook.Unity.Editor.AndroidSupportLibraryResolver.setupDependencies ()
Facebook.Unity.Editor.AndroidSupportLibraryResolver..cctor ()
Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
System.Reflection.MonoCMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:519)
System.Reflection.MonoCMethod.Invoke (BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:528)
System.Reflection.ConstructorInfo.Invoke (System.Object[] parameters) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/ConstructorInfo.cs:77)
System.Activator.CreateInstance (System.Type type, Boolean nonPublic) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System/Activator.cs:372)
System.Activator.CreateInstance (System.Type type) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System/Activator.cs:254)
UnityEditor.AssetPostprocessingInternal.GetMeshProcessorVersions () (at /Users/builduser/buildslave/unity/build/Editor/Mono/AssetPostprocessor.cs:164)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

Any progress on your end, @badben ?