Comments (8)
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.
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.
- 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.
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.
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.
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.
@tc14077, this seems to be a viable solution. Can you please have a try?
#27 (comment)
Thanks,
Qian
from flutter_ssh.
@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)
- Supporting Windows desktop would be fantastic
- Shell responses differ between iOS and Android
- No-shrink build no longer solves issue HOT 5
- Publish latest version to pub.dev
- Can't load packages with version 0.0.7
- Allow using both private key and password
- Incompatible with google_fonts 2.0.0 HOT 2
- Is there any issue with releasing in Google PlayStore? HOT 2
- flutter2.2.0: CUSTOMBUILD : error : Cannot run with sound null safety, because the following dependencies ... HOT 6
- I am getting a error message as deprecated api while build the app i sthre any new version is going to support for both android and ios as well
- anyone connected to client but no ssh commands seem to work?
- Suporte ao null safety
- Crashed after uploading the file on iOS HOT 1
- could able to read the data using simulator iOS - session is created unable to get the result value
- is there how to make this lib work on Flutter desktop windows?
- ssh2 package HOT 1
- have plans to make this lib work on Flutter Windows
- ssh 0.0.7 incompatible with web_socket_channel 2.1.0
- Error starting shell: Stream closed
- How to transfer file using scp command using ssh?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter_ssh.