android studio can't connect to debug devices

SamuraiSong

Android Studio can't connect to debug devices.

When I click the debug button, the debug tab shows me

Connecting to the target VM, address: 'localhost:8600', transport: 'socket'

in variables

When I tried again it told me

12:14:44 Error running Android Debugger (8600): Unable to open debugger port : java.io.IOException "handshake failed - connection prematurely closed"

and then debug tab show me this

 Disconnected from the target VM, address: 'localhost:8600', transport: 'socket'

in variables

My Android Studio version is 0.4.4 #AI133-1005886

This problem has been haunting me for a long time.

i use OS X

5er

Well, what it worked for me: I have change my /etc/hosts file and make sure that those 3 lines are on the bottom of the file:

127.0.0.1       localhost
255.255.255.255 broadcasthost
::1             localhost

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

android studio can't connect to debug devices

From Dev

Why can Android Studio not connect to physical devices?

From Dev

Can't connect Android devices to MacBook Pro

From Dev

Can't create folder "debug" Android studio

From Dev

Can't watch realmObjects in debug (Android Studio)

From Dev

Android Studio : Can't connect to mobile device

From Dev

Visual studio can't debug Android Xamarin app

From Dev

I can't debug a library in Android-Studio

From Dev

SimpleHTTPServer: other devices can't connect to the server

From Dev

Windows 10 can’t connect to intranet devices

From Dev

Can't connect LG G3 to Android Studio

From Dev

Python Bottle: Can't connect to server or debug it

From Dev

Can't debug in NativeScript and android

From Dev

Can't connect to devices behind TP Link and otherwise

From Dev

some of my devices can't connect to my home WIFI network

From Dev

android bluetooth can't connect

From Dev

android bluetooth can't connect

From Dev

Can't debug c++ code in android studio after updating to 3.1.2

From Dev

Web service can connect in IE, but can't connect by Visual studio

From Dev

Can't debug android app 'waiting to attach'

From Java

<no devices> in Android Studio 4.0.2

From Dev

Virtual android devices don't appear in Titanium Studio

From Dev

Visual Studio and Android Device Monitor doesn't detect any devices

From Dev

Android Studio 2.0 doesn't show emulators and devices

From Dev

Visual Studio and Android Device Monitor doesn't detect any devices

From Dev

Visual Studio can't debug, can only attach

From Dev

Android program to connect Bluetooth devices

From Dev

can genymotion be used to debug android apk with android studio

From Dev

can genymotion be used to debug android apk with android studio

Related Related

  1. 1

    android studio can't connect to debug devices

  2. 2

    Why can Android Studio not connect to physical devices?

  3. 3

    Can't connect Android devices to MacBook Pro

  4. 4

    Can't create folder "debug" Android studio

  5. 5

    Can't watch realmObjects in debug (Android Studio)

  6. 6

    Android Studio : Can't connect to mobile device

  7. 7

    Visual studio can't debug Android Xamarin app

  8. 8

    I can't debug a library in Android-Studio

  9. 9

    SimpleHTTPServer: other devices can't connect to the server

  10. 10

    Windows 10 can’t connect to intranet devices

  11. 11

    Can't connect LG G3 to Android Studio

  12. 12

    Python Bottle: Can't connect to server or debug it

  13. 13

    Can't debug in NativeScript and android

  14. 14

    Can't connect to devices behind TP Link and otherwise

  15. 15

    some of my devices can't connect to my home WIFI network

  16. 16

    android bluetooth can't connect

  17. 17

    android bluetooth can't connect

  18. 18

    Can't debug c++ code in android studio after updating to 3.1.2

  19. 19

    Web service can connect in IE, but can't connect by Visual studio

  20. 20

    Can't debug android app 'waiting to attach'

  21. 21

    <no devices> in Android Studio 4.0.2

  22. 22

    Virtual android devices don't appear in Titanium Studio

  23. 23

    Visual Studio and Android Device Monitor doesn't detect any devices

  24. 24

    Android Studio 2.0 doesn't show emulators and devices

  25. 25

    Visual Studio and Android Device Monitor doesn't detect any devices

  26. 26

    Visual Studio can't debug, can only attach

  27. 27

    Android program to connect Bluetooth devices

  28. 28

    can genymotion be used to debug android apk with android studio

  29. 29

    can genymotion be used to debug android apk with android studio

HotTag

Archive