gpt4 book ai didi

android - Appium 是否可以连接到 API 24(即 7.0)上的 Android 设备?

转载 作者:行者123 更新时间:2023-11-29 01:14:17 24 4
gpt4 key购买 nike

我正在尝试在 Android 7.0 上运行的 Genymotion 模拟器上使用 Appium 检查器。但是,当我转到 Android 设置 时,平台版本 下仅列出 API 级别 22(即 Android 5.1)。

Appium - Android Settings screenshot

只是为了好玩,我尝试选择 API 22 并启动检查器,但出现以下错误:

[AndroidDriver] Error: Unable to find an active device or emulator with OS 5.1. The following are available: 192.168.56.101:5555 (7.0) at Object.wrappedLogger.errorAndThrow (lib/logger.js:60:13) at Object.callee$0$0$ (lib/android-helpers.js:154:16) at tryCatch (/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40) at GeneratorFunctionPrototype.invoke [as _invoke] (/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22) at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21) at GeneratorFunctionPrototype.invoke (/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37) at run (/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/babel-runtime/node_modules/core-js/library/modules/es6.promise.js:104:47) at /Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/babel-runtime/node_modules/core-js/library/modules/es6.promise.js:115:28 at flush (/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/babel-runtime/node_modules/core-js/library/modules/$.microtask.js:19:5) at _combinedTickCallback (internal/process/next_tick.js:67:7) at process._tickCallback (internal/process/next_tick.js:98:9) [Error: Unable to find an active device or emulator with OS 5.1. The following are available: 192.168.56.101:5555 (7.0)]

[debug] [AndroidDriver] Shutting down Android driver

[MJSONWP] Encountered internal error running command: Error: Unable to find an active device or emulator with OS 5.1. The following are available: 192.168.56.101:5555 (7.0) at Object.wrappedLogger.errorAndThrow (lib/logger.js:60:13) at Object.callee$0$0$ (lib/android-helpers.js:154:16) at tryCatch (/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40) at GeneratorFunctionPrototype.invoke [as _invoke] (/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22) at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21) at GeneratorFunctionPrototype.invoke (/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37) at run (/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/babel-runtime/node_modules/core-js/library/modules/es6.promise.js:104:47) at /Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/babel-runtime/node_modules/core-js/library/modules/es6.promise.js:115:28 at flush (/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/babel-runtime/node_modules/core-js/library/modules/$.microtask.js:19:5) at _combinedTickCallback (internal/process/next_tick.js:67:7) at process._tickCallback (internal/process/next_tick.js:98:9)

[AndroidDriver] Cannot shut down Android driver; it has already shut down

顺便说一句,我在 macOS Sierra (10.12.1) 上运行 Appium 1.5.3,我还设置了 Android SDK 的路径,该 SDK 在高级 标签。

有什么方法可以将 API 24 添加到此列表中?

最佳答案

这似乎是一个非常旧的 Appium Desktop 版本。我建议您升级到最新版本,这样您就可以手动输入所需的版本。

Latest UI

关于android - Appium 是否可以连接到 API 24(即 7.0)上的 Android 设备?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40790600/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com