-
-
Save ruisilva450/1a4e3a0b063764fe4d32c0c83f511868 to your computer and use it in GitHub Desktop.
Xamarin Settings java.lang.Boolean cannot be cast to java.lang.String
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{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:104 | |
at Plugin.Settings.SettingsImplementation.GetValueOrDefaultInternal[T] (System.String key, T defaultValue, System.String fileName) [0x0002e] in C:\projects\settingsplugin\src\Plugin.Settings.Android\Settings.cs:46 | |
at Plugin.Settings.SettingsImplementation.GetValueOrDefault (System.String key, System.String defaultValue, System.String fileName) [0x00000] in C:\projects\settingsplugin\src\Plugin.Settings.Android\Settings.cs:397 | |
at Cas.CaLock.Apps.Helpers.Settings.get_Pin () [0x00000] in C:\Devscope\Projects\CALock\main\src\cli\apps\Cas.CaLock.Apps\Helpers\Settings.cs:52 | |
at Cas.CaLock.Apps.App..ctor () [0x00010] in C:\Devscope\Projects\CALock\main\src\cli\apps\Cas.CaLock.Apps\App.xaml.cs:21 | |
--- End of managed Java.Lang.ClassCastException stack trace --- | |
java.lang.ClassCastException: java.lang.Boolean cannot be cast to java.lang.String | |
at android.app.SharedPreferencesImpl.getString(SharedPreferencesImpl.java:225) | |
at md50788623aa0b7eb290a8d8870cdeb2832.MainActivity.n_onCreate(Native Method) | |
at md50788623aa0b7eb290a8d8870cdeb2832.MainActivity.onCreate(MainActivity.java:30) | |
at android.app.Activity.performCreate(Activity.java:6847) | |
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1119) | |
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2649) | |
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2757) | |
at android.app.ActivityThread.-wrap12(ActivityThread.java) | |
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1504) | |
at android.os.Handler.dispatchMessage(Handler.java:102) | |
at android.os.Looper.loop(Looper.java:163) | |
at android.app.ActivityThread.main(ActivityThread.java:6237) | |
at java.lang.reflect.Method.invoke(Native Method) | |
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:877) | |
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment