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

Error ClassNotFound when in release mode #21

Open
raphasauer opened this issue May 21, 2023 · 3 comments
Open

Error ClassNotFound when in release mode #21

raphasauer opened this issue May 21, 2023 · 3 comments

Comments

@raphasauer
Copy link

Hello! Using this library, I have the following exception when running my app on release:

Platform Exception (connection_failure, java.lang.ClassNotFoundException: com.jcraft.jsch.jce.Random, null, null)

The temporary fix for this is to set this on the build gradle:

            minifyEnabled false
            shrinkResources false

I suspect proguard is removing some essential files when shrinking the app. Any guidance on what to add in proguard-rules.pro?

@rshrc
Copy link

rshrc commented Aug 23, 2023

@jda258 any updates or idea on this ticket without a tempory fix?

@raphasauer anything else you found? Thanks

@raphasauer
Copy link
Author

raphasauer commented Aug 23, 2023

I haven't had any progress. You probably want something like this in your proguard-rules.pro file:

-keep class org.videolan.libvlc.** { *; }

But keeping the classes related to flutter_ssh2. @jda258 can probably give you better guidance in how to do that.

@TheFe91
Copy link

TheFe91 commented Oct 25, 2023

I've got the same problem

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

3 participants