f-miyu / Plugin.CloudFirestore

MIT License
123 stars 44 forks source link

MissingMethodException: string[] string.Split(char,System.StringSplitOptions) #3

Open appdevsa opened 5 years ago

appdevsa commented 5 years ago

Hi, I am getting the following exception on Android when I call Plugin.CloudFirestore.CloudFirestore.Init(this);

System.MissingMethodException has been thrown: string[] string.Split(char,System.StringSplitOptions)

iOS is working fine. Any ideas?

manuel-mariani commented 5 years ago

I don't know if it is the right solution but to inizialize the plugin i use CrossCurrentActivity.Current.Init(this, savedInstanceState); where savedInstanceState is the Bundle you get when the activity starts

JoeCotter commented 5 years ago

/ I'm getting the same error running Open Mono x64 compiler (Mono JIT compiler version 5.20.1 Visual Studio built mono) in Windows 10 running a simple command line executable. It compiles fine but throws the exception when run. /

// Code Block: using System; public class geoData { public static void Main() { string csvIn = Console.In.ReadToEnd(); Console.Clear(); string[] lines = csvIn.Split('\n'); Console.WriteLine(lines); } }

/ I stripped this code out to have an internal string "test1, test2" parsed rather then feeding it a file and still throws the error when run. Point is, I don't think this is a Plugin specific problem necessarily. If anyone has any information on this it would be helpful. ty. /