I'm using Android Studio v1.0.1 to build an app in macOS Yosemite 10.10. When I try to debug the app, it installs correctly but has the error
Error running [app]: Unable to open debugger port : java.net.ConnectException "Connection refused"
When I run the DDMS, it shows the connected devices and the process. The trouble occurs just when trying to debug in Android Studio.
In other forums, I've found that something could have changed the port of the debugger, but that doesn't solve my issue.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…