Skip to content

Instantly share code, notes, and snippets.

Rui ruisilva450

Block or report user

Report or block ruisilva450

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@ruisilva450
ruisilva450 / txt
Created Nov 8, 2017
Xamarin Settings java.lang.Boolean cannot be cast to java.lang.String
View txt
{Java.Lang.ClassCastException: java.lang.Boolean cannot be cast to java.lang.String
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <896ad1d315ca4ba7b117efb8dacaedcf>:0
at Java.Interop.JniEnvironment+InstanceMethods.CallObjectMethod (Java.Interop.JniObjectReference instance, Java.Interop.JniMethodInfo method, Java.Interop.JniArgumentValue* args) [0x00069] in <7cfbebb561c54efc9010b018c0846c7e>:0
at Android.Runtime.JNIEnv.CallObjectMethod (System.IntPtr jobject, System.IntPtr jmethod, Android.Runtime.JValue* parms) [0x0000e] in <e975227ac8644a30bb0866117325de0d>:0
at Android.Content.ISharedPreferencesInvoker.GetString (System.String key, System.String defValue) [0x0006c] in <e975227ac8644a30bb0866117325de0d>:0
at Plugin.Settings.SettingsImplementation.GetValueOrDefaultCore[T] (Android.Content.ISharedPreferences sharedPreferences, System.String key, T defaultValue, System.String fileName) [0x00179] in C:\projects\settingsplugin\src\Plugin.Settings.Android\Settings.cs
You can’t perform that action at this time.