虽然安装成功了,但是打算使用测试例程进行测试时就报错了,使用的是真机,用的是 android-4.4.4 版本。
[Appium] Creating new AndroidDriver session
[Appium] Capabilities:
[Appium] appActivity: '.Calculator'
[Appium] appPackage: 'com.android.calculator2'
[Appium] automationName: 'Appium'
[Appium] deviceName: '111111111111'
[Appium] platformName: 'Android'
[Appium] platformVersion: '4.4'
[BaseDriver] Session created with session id: a35665c0-8cae-4bde-9d94-fe29ae11bc49
[debug] [AndroidDriver] Getting Java version
[AndroidDriver] Java version is: 1.8.0_40
[ADB] Checking whether adb is present
[debug] [AndroidDriver] Shutting down Android driver
[debug] [AndroidDriver] Called deleteSession but bootstrap wasn't active
[MJSONWP] Encountered internal error running command: TypeError: Invalid Version: android-4.4W
at new SemVer (/usr/local/lib/node_modules/appium/node_modules/_semver@5.4.1@semver/semver.js:293:11)
at compare (/usr/local/lib/node_modules/appium/node_modules/_semver@5.4.1@semver/semver.js:566:10)
at rcompare (/usr/local/lib/node_modules/appium/node_modules/_semver@5.4.1@semver/semver.js:576:10)
at Array.sort (native)
at ADB.callee$0$0$ (../../../lib/tools/system-calls.js:89:17)
at tryCatch (/usr/local/lib/node_modules/appium/node_modules/_babel-runtime@5.8.24@babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke as _invoke
at GeneratorFunctionPrototype.prototype.(anonymous function) as next
at GeneratorFunctionPrototype.invoke (/usr/local/lib/node_modules/appium/node_modules/_babel-runtime@5.8.24@babel-runtime/regenerator/runtime.js:136:37)
at
各位大神帮忙看一下 log,不知道是哪里出的错误?是不是 SDK 版本问题?