Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

flutter_scure_storage does not work with android studio lady bug #806

Open
ssarhangi opened this issue Oct 11, 2024 · 5 comments
Open

flutter_scure_storage does not work with android studio lady bug #806

ssarhangi opened this issue Oct 11, 2024 · 5 comments

Comments

@ssarhangi
Copy link

When I upgraded my android studio to lady bug from koala, flutter_secure_storage would bomb the android emulator and project would not compile and run on android. I had to uninstall ladybug and go back to koala

@ssarhangi ssarhangi changed the title flutter_scure_storage does not work with android studio ladt bug flutter_scure_storage does not work with android studio lady bug Oct 11, 2024
@DangTuCS
Copy link

I am facing the same issue. Are there any solutions yet? I don't want to downgrade to Koala because I’ve already made many changes.

@ssarhangi
Copy link
Author

I haven't found any. So I took the path of least resistance and downgraded to koala, which targets jdk(java) version 17. That fixed it for me. I spent a day trying other hacks but nothing worked.

@jokigenki
Copy link

jokigenki commented Oct 17, 2024

We have the same issue, although the project builds correctly in Android Studio itself (after running all of the suggested upgrade steps), it does not work from IntelliJ. The errors we are getting are:

ERROR: Missing classes detected while running R8. Please add the missing classes or apply additional keep rules that are generated in C:\Users\owen\Documents\Projects\Yodobashi\yds-design-system\yds_design_system\yodobashi_point_app\example\example-point-app\build\app\outputs\mapping\release\missing_rules.txt.
ERROR: R8: Missing class com.google.errorprone.annotations.CanIgnoreReturnValue (referenced from: com.google.crypto.tink.KeysetManager com.google.crypto.tink.KeysetManager.add(com.google.crypto.tink.KeyTemplate) and 52 other contexts)
Missing class com.google.errorprone.annotations.CheckReturnValue (referenced from: com.google.crypto.tink.InsecureSecretKeyAccess and 1 other context)
Missing class com.google.errorprone.annotations.Immutable (referenced from: com.google.crypto.tink.InsecureSecretKeyAccess and 40 other contexts)
Missing class com.google.errorprone.annotations.RestrictedApi (referenced from: com.google.crypto.tink.aead.AesEaxKey$Builder com.google.crypto.tink.aead.AesEaxKey.builder() and 6 other contexts)      
Missing class javax.annotation.Nullable (referenced from: java.lang.Object com.google.crypto.tink.PrimitiveSet$Entry.fullPrimitive and 86 other contexts)
Missing class javax.annotation.concurrent.GuardedBy (referenced from: com.google.crypto.tink.proto.Keyset$Builder com.google.crypto.tink.KeysetManager.keysetBuilder and 3 other contexts)

We have tried adding these classes to proguard-rules.pro as suggested by the compiler, but this did not fix the error. Commenting this package out of our code allows it to build.

@SugiKent
Copy link

SugiKent commented Oct 21, 2024

@ssarhangi ssarhangi I had same issue on Koala. When I wrote proguard rules like below issue mentioned, the errors are fixed.
#748

@ssarhangi
Copy link
Author

@SugiKent Thanks, I will try that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants