习惯性伸手党区 1.appium 显示 Emulator Android4.4.2_test not running

Tripped · 2016年07月12日 · 最后由 securitytest 回复于 2017年09月26日 · 1797 次阅读

之前用 appium 能把 demo 跑起来,过了几天想在试就不行了
能帮忙看看是哪里出错了吗

第一次接触 appium,看不太懂 log

Launching Appium server with command: C:\Program Files (x86)\Appium\node.exe lib\server\main.js --address 127.0.0.1 --port 4723 --avd Android4.4.2_test --platform-name Android --platform-version 19 --automation-name Appium --log-no-color
info: Welcome to Appium v1.4.16 (REV ae6877eff263066b26328d457bd285c0cc62430d)
info: Appium REST http interface listener started on 127.0.0.1:4723
info: [debug] Non-default server args: {"address":"127.0.0.1","logNoColors":true,"avd":"Android4.4.2_test","platformName":"Android","platformVersion":"19","automationName":"Appium"}
info: Console LogLevel: debug
info: --> POST /wd/hub/session {"desiredCapabilities":{"platformVersion":"4.4.2","deviceName":"Android Emulator","platformName":"Android","appActivity":".Calculator","appPackage":"com.android.calculator2"}}
info: Client User-Agent string: Python-urllib/2.7
info: [debug] Didn't get app but did get Android package, will attempt to launch it on the device
info: [debug] Creating new appium session 891f3915-d4a5-47bc-97eb-ce4583ba84a9
info: Starting android appium
info: [debug] Getting Java version
info: Java version is: 1.8.0_91
info: [debug] Checking whether adb is present
info: [debug] Using adb from D:\appium\android-sdk_r23.0.2-windows\android-sdk-windows\platform-tools\adb.exe
warn: No app capability, can't parse package/activity
info: [debug] Using fast reset? true
info: [debug] Preparing device for session
info: [debug] Not checking whether app is present since we are assuming it's already on the device
info: [debug] Trying to find Android4.4.2_test emulator
info: [debug] Getting connected emulators
info: [debug] Getting connected devices...
info: [debug] executing cmd: D:\appium\android-sdk_r23.0.2-windows\android-sdk-windows\platform-tools\adb.exe devices
info: [debug] 1 device(s) connected
info: [debug] 1 emulator(s) connected
info: [debug] Sending telnet command to device: avd name
info: [debug] Getting running emulator port
info: [debug] Socket connection to device created
info: [debug] Socket connection to device ready
info: [debug] Telnet command got response: a[K[Dav[K[D[Davd[K[D[D[Davd [K[D[D[D[Davd n[K[D[D[D[D[Davd na[K[D[D[D[D[D[Davd nam[K[D[D[D[D[D[D[Davd name[K
Android4.4.2_test
info: [debug] Emulator Android4.4.2_test not running
info: [debug] Launching Emulator with AVD Android4.4.2_test, launchTimeout 120000ms and readyTimeout 120000ms
info: [debug] Checking whether emulator is present
info: [debug] Using emulator from D:\appium\android-sdk_r23.0.2-windows\android-sdk-windows\tools\emulator.exe
info: [debug] Trying to find Android4.4.2_test emulator
info: [debug] Getting connected emulators
info: [debug] Getting connected devices...
info: [debug] executing cmd: D:\appium\android-sdk_r23.0.2-windows\android-sdk-windows\platform-tools\adb.exe devices
info: [debug] 1 device(s) connected
info: [debug] 1 emulator(s) connected
info: [debug] Sending telnet command to device: avd name
info: [debug] Getting running emulator port
info: [debug] Socket connection to device created
info: [debug] Socket connection to device ready
info: [debug] Telnet command got response: a[K[Dav[K[D[Davd[K[D[D[Davd [K[D[D[D[Davd n[K[D[D[D[D[Davd na[K[D[D[D[D[D[Davd nam[K[D[D[D[D[D[D[Davd name[K
Android4.4.2_test
info: [debug] Emulator Android4.4.2_test not running
info: [debug] Trying to find Android4.4.2_test emulator
info: [debug] Getting connected emulators
info: [debug] Getting connected devices...
info: [debug] executing cmd: D:\appium\android-sdk_r23.0.2-windows\android-sdk-windows\platform-tools\adb.exe devices
info: [debug] 1 device(s) connected
info: [debug] 1 emulator(s) connected
info: [debug] Sending telnet command to device: avd name
info: [debug] Getting running emulator port
info: [debug] Socket connection to device created
info: [debug] Socket connection to device ready
info: [debug] Telnet command got response: a[K[Dav[K[D[Davd[K[D[D[Davd [K[D[D[D[Davd n[K[D[D[D[D[Davd na[K[D[D[D[D[D[Davd nam[K[D[D[D[D[D[D[Davd name[K
Android4.4.2_test
info: [debug] Emulator Android4.4.2_test not running
info: [debug] Trying to find Android4.4.2_test emulator
info: [debug] Getting connected emulators
info: [debug] Getting connected devices...
info: [debug] executing cmd: D:\appium\android-sdk_r23.0.2-windows\android-sdk-windows\platform-tools\adb.exe devices
info: [debug] 1 device(s) connected
info: [debug] 1 emulator(s) connected
info: [debug] Sending telnet command to device: avd name
info: [debug] Getting running emulator port
info: [debug] Socket connection to device created
info: [debug] Socket connection to device ready
info: [debug] Telnet command got response: a[K[Dav[K[D[Davd[K[D[D[Davd [K[D[D[D[Davd n[K[D[D[D[D[Davd na[K[D[D[D[D[D[Davd nam[K[D[D[D[D[D[D[Davd name[K
Android4.4.2_test
info: [debug] Emulator Android4.4.2_test not running
error: Unable to start Emulator: qemu-system-i386.exe: -drive if=none,index=1,id=cache,file=C:\Users\siwang.android\avd\Android4.4.2_test.avd/cache.img: could not open disk image C:\Users\siwang.android\avd\Android4.4.2_test.avd/cache.img: Could not open 'C:\Users\siwang.android\avd\Android4.4.2_test.avd/cache.img': Invalid argument

共收到 2 条回复 时间 点赞

请问解决了么

需要 登录 后方可回复, 如果你还没有账号请点击这里 注册