Android Studio emulators not able to connect to adb - android-studio

I have am Acer Spin 713 Chromebook with an 11th gen Intel I5.
When running on 10th or higher gen Intel CPUs, Android Studio on Chromebooks now supports emulators.
In Android Studio, I can bring up the AVD Manager, and start an emulator. The emulator loads and appears to be running correctly, but I get the following errors in the Android Studio error log:
3:53 PM * daemon not running; starting now at tcp:5037
3:53 PM * daemon started successfully
4:02 PM Adb connection Error:EOF
4:02 PM Failed to start monitoring emulator-5554
4:02 PM Adb connection Error:EOF
4:02 PM Cannot reach ADB server, attempting to reconnect.
4:02 PM Unable to open connection to ADB server: java.io.IOException: Can't find adb server on port 5037, IPv4 attempt: Connection refused, IPv6 attempt: Connection refused
4:02 PM Failed to start monitoring emulator-5554
4:02 PM Failed to start monitoring emulator-5554
4:02 PM Adb connection Error:EOF
4:02 PM Unable to open connection to ADB server: java.io.IOException: Can't find adb server on port 5037, IPv4 attempt: Connection refused, IPv6 attempt: Connection refused
4:02 PM Failed to start monitoring emulator-5554
4:02 PM Adb connection Error:EOF
4:02 PM Cannot reach ADB server, attempting to reconnect.
4:02 PM Unable to open connection to ADB server: java.io.IOException: Can't find adb server on port 5037, IPv4 attempt: Connection refused, IPv6 attempt: Connection refused
4:02 PM Failed to start monitoring emulator-5554
4:02 PM Adb connection Error:EOF
4:02 PM Unable to open connection to ADB server: java.io.IOException: Can't find adb server on port 5037, IPv4 attempt: Connection refused, IPv6 attempt: Connection refused
4:02 PM Failed to start monitoring emulator-5554
4:02 PM Adb connection Error:EOF
4:02 PM Cannot reach ADB server, attempting to reconnect.
4:02 PM Failed to start monitoring emulator-5554
4:02 PM Adb connection Error:EOF
I can launch the same emulator from a shell command line, assuming I have ~/Android/Sdk/emulator & ~Android/Sdk/tools in my PATH, in that order, using:
emulator -avd Pixel_3_API_30
The emulator connects to adb, and I can run/debug apps in it with Android Studio.
Any suggestions on how to fix, or debug this?

Related

ADB Connection Error: Unable to create debug bridge

On starting recently fresh installed android studio bumblebee 2021.1.1 patch 2 I get an ADB running error which hereby I attach its screenshot. Please someone tell me what is the problem? I implemented all solutions given to similar cases in stackoverflow without any success.
ADB Error
ADB Connection Error
Unable to create Debug Bridge: Timed out attempting to connect to adb*
* daemon not running; stating now at tcpc5037
* daemon stated successfully
Connected to adb for device monitoring
Sending Tracking request failed!
Adb connection Error: An existing connection was forcibly closed by the remote host
Cannot reach ADB server, attempting to reconnect.

How to connect real device with android in windows 10

When I connect the real device to the android studio in windows 10 then get an error with 10060 error code.
I follow step this step
I goto my SDK path in a terminal.
enter command adb tcpip 5555
adb connect XXX.XXX.X.XXX:5555
this error gets after step 3.
cannot connect to **XXX.XXX.X.XXX:XXXX**(IP ADDRESS) A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because the connected host has failed to respond. (10060)

ADB rejected shell command (getprop): closed

Using Android Studio and when trying to run a simple demonstration app the emulator I selected starts up but never renders the app. In the event log I see stuff like the following:
2:59 PM Emulator: emulator: WARNING: Host CPU is missing the following
feature(s) required for x86 emulation: SSSE3
2:59 PM Emulator: Hardware-accelerated emulation may not work
properly!
2:59 PM Emulator: qemu-system-x86_64: warning: host doesn't support
requested feature: CPUID.01H:ECX.ssse3 [bit 9]
2:59 PM Emulator: qemu-system-x86_64: warning: host doesn't support
requested feature: CPUID.01H:ECX.sse4.1 [bit 19]
2:59 PM Emulator: qemu-system-x86_64: warning: host doesn't support
requested feature: CPUID.01H:ECX.sse4.2 [bit 20]
2:59 PM ADB rejected shell command (getprop): closed
2:59 PM Emulator: Process finished with exit code 0
Tried restarting Android Studio
Tried recreating the AVD image
Tried killing and restarting adb
Running Ubuntu 18.04 with Android Studio 3.4
I expected that the emulator would start up and render the app created so far. I'm following https://www.youtube.com/watch?v=dFlPARW5IX8 and at about 21:22.
It says to press play and the emulator should start and show the app we have coded so far. I never see this.

Unknown connection error with adb.exe in Android Studio

I was trying to test project on a device but got Error:Unable to locate adb within SDK. Using this guide I've tried to reinstall [platform-tools] in SDK manager and added path to SDK library (Windows 7). But that didn't work. Now, after lunching project on a device I have following:
File adb.exe just disappears from the [platform-tools] folder
I get this notification in Event Log:
14:19 Unable to obtain result of 'adb version' 14:25 Executing tasks:
[:app:assembleDebug] 14:25 Adb connection Error:????????? ????
????????????? ???????? ???????????? ??????????? 14:25 Connection
attempts: 1 14:25 Connection attempts: 2 ...
Thanks in advance.

MongoDB connection failed, should I restart server or restart MongoDB

my computer is Ubuntu 14.04 LTS and I am connecting to a server to run codes. I also use the mongo on this server. However, it suddenly closed and when I tried to connect to the mongo shell, it shows:
MongoDB shell version: 2.6.9
connecting to: test
2015-05-02T16:37:34.643+0200 warning: Failed to connect to 127.0.0.1:27017, reason: errno:111 Connection refused
2015-05-02T16:37:34.643+0200 Error: couldn't connect to server 127.0.0.1:27017 (127.0.0.1), connection attempt failed at src/mongo/shell/mongo.js:146
exception: connect failed
So should I restart mongo or should I restart the server? I use ps command to see all progresses on the server under my account, which is:
PID TTY TIME CMD
107018 pts/16 00:00:00 ps
233611 pts/16 00:00:00 bash
Does that mean that I cannot restart the server?
It seems mongodb suddenly shut down.
use sudo service mongodb restartto restart mongodb.
if it does not work and it is a test machine/personal computer ,
restart the machine is a good choice.
in addition,ps only shows your own process,sudo ps shows all process.

Resources