error: cannot connect to daemon at tcp:5037
Android Studio error: cannot connect to daemon
I solved the problem on my own.
Out of frustration I opened Control Panel > System and security > Windows defender firewall > Allowed applications
and I added adb.exe (both private and public networks).
I came back to Android Studio, ran the app and magically it managed to initialize ADB and my phone connected via USB was there.
I don't really know why this worked, since when I checked in Start > All Programs > Accessories > System Tools > Resource Monitor > Network > Listening Port
it said that on port 5037 the firewall was allowed.
Moreover I don't know why up to a week ago all worked fine and now I had to do this process to make it work.
If someone more experienced manages to explain this behaviour better I'll update this answer (or accepts his as best answer)
Emulator: emulator: ERROR: AdbHostServer.cpp:102: Unable to connect to adb daemon on port: 5037
This is likely caused by insufficient permissions. Run Android Studio or your command prompt (whichever you prefer) as an administrator and that should solve your problem.
Related Topics
Rounded Swing Jbutton Using Java
How to Select One Object from the List of Objects
Using Comparable to Compare Generic Variables
How to Remove All Special Character in a String Except Dot and Comma
How to Split Single Row into Multiple Rows in Spark Dataframe Using Java
Detecting a File Downloaded in Selenium Java
How to Exclude Classes from Test Coverage Using Java Annotations in Spring Boot
Mock User Console Input in Junit Test
How to Avoid 302 Response on Https Spring Security Unit Test
After Spring Boot 2.0 Migration: Jdbcurl Is Required With Driverclassname
Calling Mutiple Webservice At Same Time in Spring Java
Find Duplicate Objects Based on Property in Java
How to Store a Large (10 Digits) Integer
Reading a Text File Character by Character into a 2D Array in Java
Map Yaml to Object Hashmap in Springboot
Spring Boot JPA - Onetomany Relationship Causes Infinite Loop
How to Change the Background Color of a Textfield Without Changing the Border in Javafx
Jpa Repository Query - Java.Lang.Object; Cannot Be Cast to Model