dtmilano / AndroidViewClient

Android ViewServer and ADB client
Apache License 2.0
1.62k stars 347 forks source link

ADB version error after upgrading to API 20 #88

Closed hoodro closed 10 years ago

hoodro commented 10 years ago

After updating to Android L API 20 I receive the follow error when attempting to connect to device using ViewClient.connectToDeviceOrExit(serialno = serial) "ERROR: Incorrect ADB server version 0004 (expecting 0004001f)" I have double checked that the version reported by ADB has not changed. It still reports when queried with "adb version" as "Android Debug Bridge version 1.0.31" which is the same as the previous version. The check is made in adbclient.py on lines 214-215 if version != VERSION: raise RuntimeError("ERROR: Incorrect ADB server version %s (expecting %s)" % (version, VERSION)) If I comment these lines out the tests continue to work fine however. I have reproduced this on 2 different systems and have updated to the latest version of the Android SDK and AndroidViewClient (7.2.0). Both systems are using the Windows version of the SDK.

luisvasconcelos commented 10 years ago

Duplicated by #89

FYI: Similar issue posted in #64 which shows one of the causes why this issue happens

dtmilano commented 10 years ago

Should be fixed by be2e22e96c7b6eb66d1383749193852be54ecf48