SecureStorage icon indicating copy to clipboard operation
SecureStorage copied to clipboard

Exception thrown: Java.Lang.NoSuchMethodError

Open mcus01 opened this issue 7 years ago • 3 comments

Hi!

I'm getting the following error in my Xamarin Forms application: [ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: The type initializer for 'Plugin.SecureStorage.SecureStorageImplementation' threw an exception. ---> Java.Lang.NoSuchMethodError: no static method "Landroid/os/Build;.getSerial()Ljava/lang/String;"

This is thrown when I try to use the SetValue method: CrossSecureStorage.Current.SetValue("test", "123");

I'm using SecureStorage version 2.0.1 (although, I'm also getting the problem in version 2.0).

Any clues? Thanks!

mcus01 avatar Feb 19 '18 09:02 mcus01

Are you compiling against SDK 26 (i.e. Android 8.0)?

sameerkapps avatar Feb 21 '18 03:02 sameerkapps

We're using an emulator with Android 7.0 (API 24).

Softtinn avatar Feb 21 '18 11:02 Softtinn

I am compiling against compiling against SDK 26 (i.e. Android 8.0), I am getting same exception, using version 2.0.1

vikram-ma avatar Apr 12 '18 03:04 vikram-ma