阅读 SDK Readme.txt文档得知:
In order to start developing applications, you must install the Platform-tools
and at least one version of the Android platform, using the SDK Manager.
安装platform-tools和至少一个Android platform
先cd到android-sdk-macosx文件夹下:
再输入命令:
tools/android update sdk --no-ui
复制代码
安装完成
2. 配置环境变量:(编辑及生存方法)
vim ./.bash_profile(或者vim ./.zshrc)--根据 shell类型。进入到vim编辑器,添加以下部门
该步调常见报错:
(1)如果报错TypeError: __init__() got an unexpected keyword argument 'desired_capabilities'
(2)如果运行时报错:提示 /bin/sh: appium: command not found(终端运行appium正常)
PyCharm 中执行命令提示 command not found
(3)如果报错
selenium.common.exceptions.WebDriverException: Message: An unknown server-side error occurred while processing the command. Original error: Could not load a driver for automationName 'xcuitest' and platformName 'ios'. Please verify your Appium installation
查找了各种环境,可以包管安装和配置都没有问题,末了问题竟然出现在下面设置的网址上。。。