shaqian / flutter_ssh

SSH and SFTP client for Flutter
https://pub.dartlang.org/packages/ssh
MIT License
117 stars 83 forks source link

PlatformException(connection_failure, java.lang.ClassNotFoundException: com.jcraft.jsch.jce.Random, null) #35

Closed newnishad closed 4 years ago

newnishad commented 4 years ago

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

An exception occurs when trying to connect on release APK, works fine on debug.

newnishad commented 4 years ago

flutter build apk --no-shrink No shrink fixes the problem. But, what if someone needs shrink?

english-aha-center commented 4 years ago

flutter build apk --no-shrink No shrink fixes the problem. But, what if someone needs shrink?

I had the same issue!! After a days of searching... you saved me!!

Thanks and I hope this is fixed soon.

shaqian commented 4 years ago

@nisadrahman @english-aha-center

If you need shrink, please refer to the workaround in this comment. https://github.com/shaqian/flutter_ssh/issues/27#issuecomment-599180850

newnishad commented 4 years ago

Considering there is a solution, therefore closing the issue.