1

エミュレーター/デバイスでコードを実行できません。Appium はデバイスを検出しませんが、cmd はデバイスを一覧表示します。

node.js コンソールには次の情報が表示されます。

info: Welcome to Appium v0.12.0 (REV a9d21807874190ae6d19f8251375cfe4da7b2ae5)

info: Appium REST http interface listener started on 127.0.0.1:4723

   info  - socket.io started

debug: Appium request initiated at /wd/hub/session

debug: Request received with params: {"desiredCapabilities":{"platform":"Windows

","browserName":"Android","app-package":"com.android.calculator2","app-activity"

:"com.android.calculator2.Calculator","version":"4.3"}}

warn: WARNING: use of browserName is deprecated. Please migrate your tests

info: Didn't get app but did get Android package, will attempt to launch it on t

he device

info: Creating new appium session 82c07566-3e62-4c64-a505-0d31ffe40089

info: Starting android appium

debug: Using fast reset? false
info: Preparing device for session

info: Not checking whether app is present since we are assuming it's already on
the device

info: Checking whether adb is present

info: [ADB] Using adb from C:\adt-bundle-windows-x86_64-20131030\sdk\platform-to

ols\adb.exe

info: Trying to find a connected android device

info: [ADB] Getting connected devices...

debug: executing: "C:\adt-bundle-windows-x86_64-20131030\sdk\platform-tools\adb.

exe" devices

warn:  code=ENOENT, errno=ENOENT, syscall=spawn

info: Could not find devices, restarting adb server...

debug: executing: "C:\adt-bundle-windows-x86_64-20131030\sdk\platform-tools\adb.

exe" kill-server

warn:  code=ENOENT, errno=ENOENT, syscall=spawn

error: Error killing ADB server, going to see if it's online anyway

info: [ADB] Getting connected devices...

debug: executing: "C:\adt-bundle-windows-x86_64-20131030\sdk\platform-tools\adb.

exe" devices

warn:  code=ENOENT, errno=ENOENT, syscall=spawn

info: Could not find devices, restarting adb server...

debug: executing: "C:\adt-bundle-windows-x86_64-20131030\sdk\platform-tools\adb.

exe" kill-server

warn:  code=ENOENT, errno=ENOENT, syscall=spawn

error: Error killing ADB server, going to see if it's online anyway

info: [ADB] Getting connected devices...

debug: executing: "C:\adt-bundle-windows-x86_64-20131030\sdk\platform-tools\adb.

exe" devices

warn:  code=ENOENT, errno=ENOENT, syscall=spawn

info: Could not find devices, restarting adb server...

debug: executing: "C:\adt-bundle-windows-x86_64-20131030\sdk\platform-tools\adb.

exe" kill-server

warn:  code=ENOENT, errno=ENOENT, syscall=spawn

error: Error killing ADB server, going to see if it's online anyway

info: [ADB] Getting connected devices...

debug: executing: "C:\adt-bundle-windows-x86_64-20131030\sdk\platform-tools\adb.

exe" devices

warn:  code=ENOENT, errno=ENOENT, syscall=spawn

info: Could not find devices, restarting adb server...

debug: executing: "C:\adt-bundle-windows-x86_64-20131030\sdk\platform-tools\adb.

exe" kill-server

warn:  code=ENOENT, errno=ENOENT, syscall=spawn

error: Error killing ADB server, going to see if it's online anyway

info: [ADB] Getting connected devices...

debug: executing: "C:\adt-bundle-windows-x86_64-20131030\sdk\platform-tools\adb.

exe" devices

warn:  code=ENOENT, errno=ENOENT, syscall=spawn

info: Could not find devices, restarting adb server...

debug: executing: "C:\adt-bundle-windows-x86_64-20131030\sdk\platform-tools\adb.

exe" kill-server

warn:  code=ENOENT, errno=ENOENT, syscall=spawn

error: Error killing ADB server, going to see if it's online anyway

info: [ADB] Getting connected devices...

debug: executing: "C:\adt-bundle-windows-x86_64-20131030\sdk\platform-tools\adb.

exe" devices

warn:  code=ENOENT, errno=ENOENT, syscall=spawn

info: Could not find devices, restarting adb server...

debug: executing: "C:\adt-bundle-windows-x86_64-20131030\sdk\platform-tools\adb.

exe" kill-server

warn:  code=ENOENT, errno=ENOENT, syscall=spawn

error: Error killing ADB server, going to see if it's online anyway

info: [ADB] Getting connected devices...

debug: executing: "C:\adt-bundle-windows-x86_64-20131030\sdk\platform-tools\adb.

exe" devices

warn:  code=ENOENT, errno=ENOENT, syscall=spawn

info: Could not find devices, restarting adb server...

debug: executing: "C:\adt-bundle-windows-x86_64-20131030\sdk\platform-tools\adb.

exe" kill-server

warn:  code=ENOENT, errno=ENOENT, syscall=spawn

error: Error killing ADB server, going to see if it's online anyway

info: [ADB] Getting connected devices...

debug: executing: "C:\adt-bundle-windows-x86_64-20131030\sdk\platform-tools\adb.

exe" devices

warn:  code=ENOENT, errno=ENOENT, syscall=spawn

info: Could not find devices, restarting adb server...

debug: executing: "C:\adt-bundle-windows-x86_64-20131030\sdk\platform-tools\adb.

exe" kill-server

warn:  code=ENOENT, errno=ENOENT, syscall=spawn

error: Error killing ADB server, going to see if it's online anyway

info: [ADB] Getting connected devices...

debug: executing: "C:\adt-bundle-windows-x86_64-20131030\sdk\platform-tools\adb.
exe" devices

warn:  code=ENOENT, errno=ENOENT, syscall=spawn

info: Could not find devices, restarting adb server...

debug: executing: "C:\adt-bundle-windows-x86_64-20131030\sdk\platform-tools\adb.

exe" kill-server

warn:  code=ENOENT, errno=ENOENT, syscall=spawn

error: Error killing ADB server, going to see if it's online anyway

info: [ADB] Getting connected devices...

debug: executing: "C:\adt-bundle-windows-x86_64-20131030\sdk\platform-tools\adb.

exe" devices

warn:  code=ENOENT, errno=ENOENT, syscall=spawn

info: Could not find devices, restarting adb server...

debug: executing: "C:\adt-bundle-windows-x86_64-20131030\sdk\platform-tools\adb.

exe" kill-server

warn:  code=ENOENT, errno=ENOENT, syscall=spawn

error: Error killing ADB server, going to see if it's online anyway

info: [ADB] Getting connected devices...

debug: executing: "C:\adt-bundle-windows-x86_64-20131030\sdk\platform-tools\adb.

exe" devices

warn:  code=ENOENT, errno=ENOENT, syscall=spawn

info: Could not find devices, restarting adb server...

debug: executing: "C:\adt-bundle-windows-x86_64-20131030\sdk\platform-tools\adb.

exe" kill-server
warn:  code=ENOENT, errno=ENOENT, syscall=spawn

error: Error killing ADB server, going to see if it's online anyway

info: [ADB] Getting connected devices...

debug: executing: "C:\adt-bundle-windows-x86_64-20131030\sdk\platform-tools\adb.

exe" devices

warn:  code=ENOENT, errno=ENOENT, syscall=spawn
info: Could not find devices, restarting adb server...

debug: executing: "C:\adt-bundle-windows-x86_64-20131030\sdk\platform-tools\adb.

exe" kill-server

warn:  code=ENOENT, errno=ENOENT, syscall=spawn

error: Error killing ADB server, going to see if it's online anyway

info: [ADB] Getting connected devices...
debug: executing: "C:\adt-bundle-windows-x86_64-20131030\sdk\platform-tools\adb.

exe" devices

warn:  code=ENOENT, errno=ENOENT, syscall=spawn

info: Could not find devices, restarting adb server...

debug: executing: "C:\adt-bundle-windows-x86_64-20131030\sdk\platform-tools\adb.

exe" kill-server
warn:  code=ENOENT, errno=ENOENT, syscall=spawn

error: Error killing ADB server, going to see if it's online anyway

info: [ADB] Getting connected devices...
debug: executing: "C:\adt-bundle-windows-x86_64-20131030\sdk\platform-tools\adb.

exe" devices

warn:  code=ENOENT, errno=ENOENT, syscall=spawn

info: Could not find devices, restarting adb server...
debug: executing: "C:\adt-bundle-windows-x86_64-20131030\sdk\platform-tools\adb.

exe" kill-server

warn:  code=ENOENT, errno=ENOENT, syscall=spawn

error: Error killing ADB server, going to see if it's online anyway
info: [ADB] Getting connected devices...

debug: executing: "C:\adt-bundle-windows-x86_64-20131030\sdk\platform-tools\adb.

exe" devices

warn:  code=ENOENT, errno=ENOENT, syscall=spawn

info: Could not find devices, restarting adb server...
debug: executing: "C:\adt-bundle-windows-x86_64-20131030\sdk\platform-tools\adb.

exe" kill-server

warn:  code=ENOENT, errno=ENOENT, syscall=spawn

error: Error killing ADB server, going to see if it's online anyway

info: [ADB] Getting connected devices...

debug: executing: "C:\adt-bundle-windows-x86_64-20131030\sdk\platform-tools\adb.

exe" devices

warn:  code=ENOENT, errno=ENOENT, syscall=spawn

info: Could not find devices, restarting adb server...

debug: executing: "C:\adt-bundle-windows-x86_64-20131030\sdk\platform-tools\adb.

exe" kill-server

warn:  code=ENOENT, errno=ENOENT, syscall=spawn

error: Error killing ADB server, going to see if it's online anyway

info: [ADB] Getting connected devices...

debug: executing: "C:\adt-bundle-windows-x86_64-20131030\sdk\platform-tools\adb.

exe" devices

warn:  code=ENOENT, errno=ENOENT, syscall=spawn

info: Could not find devices, restarting adb server...

debug: executing: "C:\adt-bundle-windows-x86_64-20131030\sdk\platform-tools\adb.

exe" kill-server

warn:  code=ENOENT, errno=ENOENT, syscall=spawn

error: Error killing ADB server, going to see if it's online anyway

info: [ADB] Getting connected devices...

debug: executing: "C:\adt-bundle-windows-x86_64-20131030\sdk\platform-tools\adb.

exe" devices

warn:  code=ENOENT, errno=ENOENT, syscall=spawn

info: Could not find devices, restarting adb server...

debug: executing: "C:\adt-bundle-windows-x86_64-20131030\sdk\platform-tools\adb.

exe" kill-server

warn:  code=ENOENT, errno=ENOENT, syscall=spawn

error: Error killing ADB server, going to see if it's online anyway

info: [ADB] Getting connected devices...

debug: executing: "C:\adt-bundle-windows-x86_64-20131030\sdk\platform-tools\adb.

exe" devices

warn:  code=ENOENT, errno=ENOENT, syscall=spawn

info: Could not find devices, restarting adb server...

debug: executing: "C:\adt-bundle-windows-x86_64-20131030\sdk\platform-tools\adb.

exe" kill-server

warn:  code=ENOENT, errno=ENOENT, syscall=spawn
error: Error killing ADB server, going to see if it's online anyway

info: [ADB] Getting connected devices...

debug: executing: "C:\adt-bundle-windows-x86_64-20131030\sdk\platform-tools\adb.

exe" devices

warn:  code=ENOENT, errno=ENOENT, syscall=spawn

info: Could not find devices, restarting adb server...

debug: executing: "C:\adt-bundle-windows-x86_64-20131030\sdk\platform-tools\adb.

exe" kill-server

warn:  code=ENOENT, errno=ENOENT, syscall=spawn

error: Error killing ADB server, going to see if it's online anyway

info: [ADB] Getting connected devices...

debug: executing: "C:\adt-bundle-windows-x86_64-20131030\sdk\platform-tools\adb.

exe" devices

warn:  code=ENOENT, errno=ENOENT, syscall=spawn

POST /wd/hub/session 200 599985ms

debug: Appium request initiated at /wd/hub/session

debug: Request received with params: {"desiredCapabilities":{"platform":"Windows

","browserName":"Android","app-package":"com.android.calculator2","app-activity"

:"com.android.calculator2.Calculator","version":"4.3"}}

warn: WARNING: use of browserName is deprecated. Please migrate your tests

info: Didn't get app but did get Android package, will attempt to launch it on t

he device

error: Failed to start an Appium session, err was: Error: Requested a new sessio

n but one was in progress

info: Responding to client with error: {"status":33,"value":{"message":"A new se

ssion could not be created. (Original error: Requested a new session but one was

 in progress)","origValue":"Requested a new session but one was in progress"},"s

essionId":"82c07566-3e62-4c64-a505-0d31ffe40089"}

POST /wd/hub/session 500 55ms - 278b
4

2 に答える 2

0

これが私の問題を解決したものです-

コマンドプロンプトを開き、パスを入力します。このパスが C:\WINDOWS\system32 に存在するかどうかを確認します。そうでない場合は、手順 3 に進みます。システム変数 %SYSTEMROOT%\System32 に次のようなパスを追加します。

これは、Appium/ADB で System32 フォルダーの読み取りと展開に問題がある場合に発生します。

于 2014-09-26T00:25:33.960 に答える