dtmilano / AndroidViewClient

Android ViewServer and ADB client
Apache License 2.0
1.61k stars 345 forks source link

Couldn´t find display... #105

Closed Txisko closed 9 years ago

Txisko commented 9 years ago

Hi:

When I try to launch a simple project with viewclient I get a RuntimeError

File "/usr/local/lib/python2.7/dist-packages/androidviewclient-8.11.0-py2.7.egg/com/dtmilano/android/adb/adbclient.py", line 357, in getPhysicalDisplayInfo
    raise RuntimeError("Couldn't find display info in 'wm size', 'dumpsys display' or 'dumpsys window'")
RuntimeError: Couldn't find display info in 'wm size', 'dumpsys display' or 'dumpsys window'

This only happens when I try to launch the code in android 2.3.3. In android 4+ works great.

Any idea?

dtmilano commented 9 years ago

AndroidViewClient tries to find the display info using 3 different methods: