Code Monkey home page Code Monkey logo

Comments (8)

thomashuettmaier avatar thomashuettmaier commented on July 20, 2024

Same error on Android with client.connect() , app starts fine but when starting the SSH connection the app crashed. On emulator everything is fine.

from flutter_ssh.

thomashuettmaier avatar thomashuettmaier commented on July 20, 2024

This is the error I get:

2019-12-16 14:09:10.421 11233-11415/com.baumaster.statistics E/SshPlugin: Connection failed: java.lang.ClassNotFoundException: com.jcraft.jsch.jce.Random
2019-12-16 14:09:10.425 11233-11417/com.baumaster.statistics E/AndroidRuntime: FATAL EXCEPTION: Thread-5
Process: com.baumaster.statistics, PID: 11233
java.lang.NullPointerException: Attempt to read from field 'b.a.a.h e.a.a.a$q.e' on a null object reference
at e.a.a.a$e.run(:559)
at java.lang.Thread.run(Thread.java:919)

from flutter_ssh.

thomashuettmaier avatar thomashuettmaier commented on July 20, 2024
  • Run flutter build apk --release
  • Ignore all warning like ssh uses unsafe operations
  • Open the android folder in Android Studio
  • Let the indexing and the gradle sync process finish
  • Change the Build Variants to release
  • Then: Build / Generate Signed Bundle/APK

from flutter_ssh.

IsaBass avatar IsaBass commented on July 20, 2024

I also have the same problem, but crashes in the emulator and the physical mobile in debug mode. No error message. Just do nothing after client.connect () On Android.

from flutter_ssh.

shaqian avatar shaqian commented on July 20, 2024

I also have the same problem, but crashes in the emulator and the physical mobile in debug mode. No error message. Just do nothing after client.connect () On Android.

@IsaBass, are you using Flutter 1.12? I see others reporting similar issue here: #28

Does it work if you downgrade Flutter version?

Thanks,
Qian

from flutter_ssh.

tc14077 avatar tc14077 commented on July 20, 2024

I also have the same problem, but crashes in the emulator and the physical mobile in debug mode. No error message. Just do nothing after client.connect () On Android.

@IsaBass, are you using Flutter 1.12? I see others reporting similar issue here: #28

Does it work if you downgrade Flutter version?

Thanks,
Qian

Hi Qian,

We are all encountering same issue after upgrading to Flutter 1.12. See the issue: #27

I have no choice but downgraded my flutter version in order to use this plugin.

Any suggestions or updates will provide in future?
Thanks,
Tom

from flutter_ssh.

shaqian avatar shaqian commented on July 20, 2024

#27

@tc14077, this seems to be a viable solution. Can you please have a try?
#27 (comment)

Thanks,
Qian

from flutter_ssh.

tc14077 avatar tc14077 commented on July 20, 2024

#27

@tc14077, this seems to be a viable solution. Can you please have a try?
#27 (comment)

Thanks,
Qian

Hi @shaqian ,

I followed the suggestion on #27, the build can be done. However, there is another problem happened and the symptom is similar to #37. Perhaps you can give some advice to me. FYI, I am using flutter version v1.12.13+hotfix.9.

Thanks,
Tom

EDIT:
I think I have fix the problem, please see here

from flutter_ssh.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.