Android Question libcore.io.ErrnoException: recvfrom failed: ECONNRESET (Connection reset by peer)

Teech

Member
Licensed User
Longtime User
I have installed Bridge on my phone.
I have activated Wireless connection on it.
I have connected in B4A my phone with Tool-B4A Bridge-Connect
I have run my application in Debug(rapid) mode to test it.

It has worked fine until today.
Now, with the same process, instead of run apk installation on phone return this error:
libcore.io.ErrnoException: recvfrom failed: ECONNRESET (Connection reset by peer)
I noticed that B4A-bridge indicates "disconnected" for a few moments.

i already have:
- uninstalled app from phone
- cleaned phone (after uninstall) with CleanMaster
- used in B4A Tools-Clean project
- tryed to use other compiling mode (for example "Debug legacy")
- checked that wi-fi works properly
- restarted PC and phone too
With AVD works slowly but work

How can i solve this problem?
Thank you
 

khosrwb

Active Member
Licensed User
Longtime User
I have this problem
and read this answer
It sounds like a network problem. You can always switch to usb debug mode instead.
but I can't to solve this problem , it's possible to tell me beter (( what I do for solve ))
 
Upvote 0

khosrwb

Active Member
Licensed User
Longtime User
Which problem? Is B4A-Bridge connecting?
yes , connect & disconnect allwase
libcore.io.ErrnoException: recvfrom failed: ECONNRESET (Connection reset by peer)

when I will connected to pc (( with wifi )) this error occored .
I turn on USB debugging on developer options
i do these:
- uninstalled app from phone
- tryed to use other compiling mode (for example "Debug legacy")
- checked that wi-fi works properly
- restarted PC and phone too
 
Upvote 0

khosrwb

Active Member
Licensed User
Longtime User
You should enable USB debug mode, connect the device with a USB cable, install the device USB driver (Google your device model with ADB) and disconnect B4A-Bridge.

I do:
1. enable USB debug mode
2. connect the device with usb cable
3. install the device USB derive

but don't solved this problem:(
 

Attachments

  • Capture1.PNG
    Capture1.PNG
    33.4 KB · Views: 522
Upvote 0

khosrwb

Active Member
Licensed User
Longtime User
Please post the full error message from the logs. Make sure that B4A-Bridge is disconnected.
what is means this: Make sure that B4A-Bridge is disconnected. (( what time? in install ADB ))
my divice can't connect to B4A .:(
this error show in my device and I can't any connect to B4A . (( there is only this line in logs : LogCat connected to: B4A-Bridge: nubia NX403A-863396024195842 ))
conect for 1second and disconnect for 1second and agan ....... .:(
 
Upvote 0

khosrwb

Active Member
Licensed User
Longtime User
my problem solved with this work :
1. I uninstall the B4A from own computer then re install it.
2. when I install it and press F2 , I should install the B4A Designer in own device.

I have a question : why I should install B4A Designer ?
 
Upvote 0
Top