flutter_secure_storage
flutter_secure_storage copied to clipboard
Android: IllegalAcessError on flutter_secure_storage v7.0.*
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.
This will help https://www.youtube.com/watch?v=JogvnnaJ8TI
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?
@mogol can you help here?
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, ),
I am closing all older issues. If this issue still exists in the latest version, please let me know.