我的配置 os x 10.10.5 jdk 1.8.0 Xcode7.2 Android studio1.5.1
folk 一份https://github.com/appium/appium.git
到自己的自己的github下,clone到本地
Make sure you have ant, maven, adb installed and added to system PATH, also you would need the android-16 sdk (for Selendroid) and android-19 sdk installed. From your local repo’s command prompt, install the following packages using the following commands (if you didn’t install node using homebrew, you might have to run
npm
with sudo privileges):
根据要求
需要安装npm,然后先为了方便先安装homebrew,这个自动安装之后就brew install npm
brew install ant
然后执行cd appium
./reset.sh --verbose
报错
Error: Target id is not valid. Use 'android list targets' to get the target ids.
然后更新Android SDK 16(selendroid模式需要) 19,至少更新这两个吧.
Warning: Command failed: /bin/sh -c mvn clean package -DskipTests=true
这个问题也是需要 Android SDK 16
然后再执行命令,遇到其他问题再查吧,幸好我的就直接成功了
---- reset.sh completed successfully ----