Airtest icon indicating copy to clipboard operation
Airtest copied to clipboard

Please be able to customize the adb location (Android)

Open sumio opened this issue 1 year ago • 0 comments

I am an Android app developer. When I use AirTest for Android apps, I often run tests while viewing Logcat in Android Studio. In that case, if the version of adb used by Android Studio is different from the version of adb used by AirTest, I get the following error message and AirTest will fail.

adb server version (40) doesn't match this client (41); killing...

Can you please provide an interface to change the default ADB path used by AirTest so that we can avoid such problems?

Currently, every time I install the airtest module, I have to replace the adb command used by airtest module with the one used by Android Studio, which is very annoying.

$ cd ./lib/python3.9/site-packages/airtest/core/android/static/adb/mac/
$ rm adb
$ ln -s $ANDROID_HOME/platform-tools/adb .

sumio avatar Jan 25 '23 09:01 sumio