I am trying to run a test written in python that uses appium to browse to a given URL using the chrome app installed on a physical android device.
I am using Pycharm as my IDE on a Mac.
The problem i am getting seems easy to fix, i thought i had fixed it but it is still cropping up.
The error when i try to run my script is:
WebDriverException: Message: u'A new session could not be created. (Original error: Could not find adb. Please set the ANDROID_HOME environment variable with the Android SDK root directory path.)'
The path to my SDK is:
/Volumes/ADATA HD710/Android emulator
The adb
is in /Volumes/ADATA HD710/Android emulator/platform-tools
I have set the path both on my mac and in the environment variables section in Pycharm but i still am getting this error when i run the script.
Is there anything obvious i have missed?
Any help would be much appreciated.
将路径设置为:export ANDROID_HOME = / Users / Macbook-Name / Android / sdk / tools和export ANDROID_HOME = / Users / Macbook-Name / Android / sdk / platform-tools路径应同时指向platform-tools文件夹和工具文件夹。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.