ViewServer icon indicating copy to clipboard operation
ViewServer copied to clipboard

Unable to debug device: lge-nexus

Open gsingh93 opened this issue 13 years ago • 40 comments

The ViewServer class isn't working on my device. I keep getting the following error:

12:16:52 E/ViewServerDevice: Unable to debug device: lge-nexus_4-04848005ded98f1f 12:16:52 E/hierarchyviewer: Missing forwarded port for 04848005ded98f1f 12:16:52 E/hierarchyviewer: Unable to get view server version from device 04848005ded98f1f 12:16:52 E/hierarchyviewer: Missing forwarded port for 04848005ded98f1f 12:16:52 E/hierarchyviewer: Unable to get view server protocol version from device 04848005ded98f1f

gsingh93 avatar May 19 '13 19:05 gsingh93

I'm having a similar issue since the most recent update to the Android SDK / tools:

[2013-05-31 09:15:38 - hierarchyviewer]Unable to get view server version from device 0146B0000D00D015 [2013-05-31 09:15:38 - hierarchyviewer]Unable to get view server protocol version from device 0146B0000D00D015 [2013-05-31 09:15:38 - ViewServerDevice]Unable to debug device: samsung-galaxy_nexus-0146B0000D00D015 [2013-05-31 09:15:38 - hierarchyviewer]Missing forwarded port for 0146B0000D00D015 [2013-05-31 09:15:38 - hierarchyviewer]Unable to get the focused window from device 0146B0000D00D015

PercyBoyes avatar May 30 '13 23:05 PercyBoyes

I am seeing a very similar issue...

01:45:06 E/ViewServerDevice: Unable to debug device: asus-nexus_7-015d262e2d3bf803
01:45:06 E/hierarchyviewer: Missing forwarded port for 015d262e2d3bf803
01:45:06 E/hierarchyviewer: Unable to get the focused window from device 015d262e2d3bf803
01:45:27 E/hierarchyviewer: Missing forwarded port for 015d262e2d3bf803
01:45:27 E/hierarchyviewer: Unable to get view server version from device 015d262e2d3bf803
01:45:27 E/hierarchyviewer: Missing forwarded port for 015d262e2d3bf803
01:45:27 E/hierarchyviewer: Unable to get view server protocol version from device 015d262e2d3bf803
01:45:27 E/ViewServerDevice: Unable to debug device: asus-nexus_7-015d262e2d3bf803

Was anyone able to get it working?

mrunaln avatar Aug 07 '13 05:08 mrunaln

Almost certainly related to 4.3.3. I'm getting a similar error on my updated devices, but the same app is working on 4.3.2.

MorrisonCole avatar Aug 08 '13 09:08 MorrisonCole

I am having same problem in my eclipse. I am getting same message when i launch any AVD or when i attach any android device. Does anyone know how to solve this issue? And Does anyone know what is the reason behind this? And I think because of this application is not getting launched in my device. Eclipse is showing that launching (100%) but no app launch in device.

Rao27 avatar Aug 15 '13 12:08 Rao27

Same problem here. Nexus 4 running stock Android 4.3

david-sabata avatar Sep 30 '13 10:09 david-sabata

I get it partially working if I ran HierarchyViewer after I was at the screen with the view I wanted to see. I can inspect a screen shot but load view hierarchy is disabled. I tried on a 4.2.2 Samsung and have the same issue with Load View Hierarchy disabled.

JefStat avatar Oct 30 '13 21:10 JefStat

Same here.. Galaxy Nexus with 4.3.3 Hoping either Romain or Jake sees it..

Aman-Aalam avatar Dec 08 '13 18:12 Aman-Aalam

I'm still seeing this issue too, on a Nexus 5 running 4.4.2.

timtrueman avatar Dec 11 '13 00:12 timtrueman

Anybody try root the device already? my nexus5 works well because it's rooted device, however my galaxy nexus (not root) not working with same problem ,is this reason cause the error?

clarkshu1016 avatar Dec 11 '13 07:12 clarkshu1016

Unable to connect my Samsung Galaxy Tab 2. Running 4.1.2.

izBasit avatar Dec 23 '13 07:12 izBasit

Make sure you have the INTERNET permission declared in your manifest.

romainguy avatar Dec 25 '13 04:12 romainguy

Hmm, I have that set in my manifest but it does not work for me…

timtrueman avatar Dec 27 '13 01:12 timtrueman

I'm seeing the same on my Moto X: the app definitely has ViewServer, but Hierarchy Viewer shows

[2014-01-21 18:12:28 - ViewServerDevice]Unable to debug device: motorola-xt1058-T062202O9K
[2014-01-21 18:26:31 - hierarchyviewer]Missing forwarded port for T062202O9K
[2014-01-21 18:26:31 - hierarchyviewer]Unable to get view server version from device T062202O9K
[2014-01-21 18:26:31 - hierarchyviewer]Missing forwarded port for T062202O9K
[2014-01-21 18:26:31 - hierarchyviewer]Unable to get view server protocol version from device T062202O9K
[2014-01-21 18:26:31 - ViewServerDevice]Unable to debug device: motorola-xt1058-T062202O9K

rohandhruva avatar Jan 22 '14 02:01 rohandhruva

Seeing the same problem on a Nexus 7, running 4.4.2. I do have the INTERNET permission in my manifest. Do I have to import the project as a library or can I just use the java file as a standalone class? Update: Tried it as a proper library in the ADT scheme of things. Still no luck. Would really like to inspect my view hierarchy. Any fix in sight?

rafaelspring avatar Jan 30 '14 18:01 rafaelspring

I got exactly the same issue on the nexus 7 with latest 4.4.2, sometimes this get fixed by reconnect the usb cable and killing adb. I was unable to find the issue to solve this properly.

drindt avatar Feb 19 '14 12:02 drindt

same Problem on Nexus7 with 4.4.2 .But when i run in an Android Virtual Device it's working.

mjkohoh avatar Feb 28 '14 02:02 mjkohoh

Same here with ANY nexus device, rooted or not, running 4.3 or 4.4... :(

Takhion avatar Mar 20 '14 09:03 Takhion

Same issue, Nexus 7 4.4.2

ivanbartsov avatar Mar 20 '14 13:03 ivanbartsov

got same issue galaxy s4, android 4.4.2

gturedi avatar Apr 07 '14 11:04 gturedi

Same issue on Nexus 10 (Android 4.4.2).

mars3142 avatar Apr 22 '14 09:04 mars3142