Search code examples
androideclipselogcathierarchyviewer

Eclipse logcat no logs from Pixel XL, No Debugging, Phone not recognized


I've tried reading everything that seems related and still haven't found an answer. Here's what I know:

I'm using Eclipse Juno, Android 7.0 release level, a Pixel XL running Oreo DDMS shows my phone as HT6B0XXXXXX, online and unknown, even though it's a google phone. (XXXXXX are number omitted for privacy reasons.) When I launch the application, I get:

[2017-10-15 13:22:51 - hierarchyviewer]Unable to get view server version from device HT6BG0XXXXXX [2017-10-15 13:22:51 - hierarchyviewer]Unable to get view server protocol version from device HT6BG0XXXXXX [2017-10-15 13:22:52 - ViewServerDevice]Unable to debug device: HT6BG0XXXXXX [2017-10-15 13:22:52 - hierarchyviewer]Missing forwarded port for HT6BG0XXXXXX [2017-10-15 13:22:52 - hierarchyviewer]Unable to get the focused window from device HT6BG0XXXXXX


I'm not getting any output on logcat, which I suspect is because of the above issues.

Does anyone know how to fix this?


Solution

  • It's not about Eclipse version, i used Eclipse Juno, Mars and now using Oxygen. There is no logcat support for Android 7.0 and above in Eclipse. You should use a device with Android below 7.0 like i do or migrate your project to Android Studio.

    I had to migrate to Android Studio not only because support for Eclipse is diminishing everyday. You can't use new libraries, such as FusedLocationProvider. You need to get used to working with Android Studio even if you don't like it. Frankly, i don't like Android Studio very much but it's the way it's supposed to be.

    Eclipse also does not support MultiDexing which is essential for big projects.