dtmilano / AndroidViewClient

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

ADB Server Version Incorrect #89

Closed blackcatavi closed 9 years ago

blackcatavi commented 10 years ago

Hey,

I have simple program that does click menu only. But i cannot connect the view client. The paths are set to be correct. ANDROID_VIEW_CLIENT_HOME = C:\android-sdk-win\AndroidViewClient-master\AndroidViewClient ANDROID_HOME = C:\android-sdk-win

My program is something like this:

import os import sys

try: sys.path.append(os.path.join(os.environ['ANDROID_VIEW_CLIENT_HOME'], 'src')) except: pass from com.dtmilano.android.viewclient import ViewClient

device, serialno = ViewClient.connectToDeviceOrExit(serialno='emulator-5556') vc = ViewClient(device, serialno) print '>>> Pressing home' device.press('KEYCODE_MENU')

It keeps giving me error that ADB server version is incorrect, when it goes to device, serialno = ViewClient.connectToDeviceOrExit(serialno='emulator-5556') in viewclient.py.

Waiting for your reply

luisvasconcelos commented 10 years ago

Duplicated by #88

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