flutter_secure_storage icon indicating copy to clipboard operation
flutter_secure_storage copied to clipboard

Android: IllegalAcessError on flutter_secure_storage v7.0.*

Open dmytrohurskyi opened this issue 2 years ago • 4 comments

Hi! I use flutter_secure_storage in my flutter project like this:

late FlutterSecureStorage _storage;

 _storage = const FlutterSecureStorage(
      aOptions: AndroidOptions(
        encryptedSharedPreferences: true,
      ),
    );

and when I update package version to 7.0.0 or 7.0.1, Android app keeps crashing on startup with exception (release build):

Fatal Exception: java.lang.IllegalAccessError Illegal class access: 'd.h.c.a.F.e' attempting to access 'com.google.crypto.tink.internal.n' (declaration of 'd.h.c.a.F.e' appears in /data/app/***app package name + some key***/base.apk)

This happens only on release builds, on debug build app does not crash with v. 7.0.*

If I use flutter_secure_storage version 6.0.0, then app runs fine.

dmytrohurskyi avatar Jan 23 '23 12:01 dmytrohurskyi

This will help https://www.youtube.com/watch?v=JogvnnaJ8TI

BraveEvidence avatar Mar 15 '23 11:03 BraveEvidence

I'm also having this issue, but my app is using v6.0.0 of flutter_secure_storage @dmytrohurskyi were you able to solve this?

ericomine avatar Apr 12 '23 15:04 ericomine

@mogol can you help here?

dmytrohurskyi avatar May 25 '23 08:05 dmytrohurskyi

I also have the same issue in 9.0.0

read and write don't seem not to be working when I add the aOptions: AndroidOptions( encryptedSharedPreferences: true, ),

AbdulazizAlshami avatar May 07 '24 08:05 AbdulazizAlshami

I am closing all older issues. If this issue still exists in the latest version, please let me know.

juliansteenbakker avatar Aug 13 '24 20:08 juliansteenbakker