- > info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION
- > info: [debug] [BOOTSTRAP] [debug] Got command action: getDataDir
- > info: [debug] [BOOTSTRAP] [debug] Returning result: {"status":0,"value":"\/data"}
- > info: [debug] dataDir set to: /data
- > info: [debug] Pushing command to appium work queue: ["compressedLayoutHierarchy",{"compressLayout":false}]
- > info: [debug] [BOOTSTRAP] [debug] Got data from client: {"cmd":"action","action":"compressedLayoutHierarchy","params":{"compressLayout":false}}
- > info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION
- > info: [debug] [BOOTSTRAP] [debug] Got command action: compressedLayoutHierarchy
- > info: [debug] [BOOTSTRAP] [debug] Returning result: {"status":0,"value":false}
- > info: [debug] Getting device API level
- > info: [debug] executing cmd: E:\android-sdk\platform-tools\adb.exe -s 1df0f13d shell "getprop ro.build.version.sdk"
- > info: [debug] Device is at API Level 23
- > info: [debug] executing cmd: E:\android-sdk\platform-tools\adb.exe -s 1df0f13d shell "am start -S -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -f 0x10200000 -n com.android.calculator2/.Calculator"
- > info: [debug] Waiting for pkg "com.android.calculator2" and activity ".Calculator" to be focused
- > info: [debug] Getting focused package and activity
- > info: [debug] executing cmd: E:\android-sdk\platform-tools\adb.exe -s 1df0f13d shell "dumpsys window windows"
- > info: [debug] Getting focused package and activity
- > info: [debug] executing cmd: E:\android-sdk\platform-tools\adb.exe -s 1df0f13d shell "dumpsys window windows"
- > info: [debug] Getting focused package and activity
- > info: [debug] executing cmd: E:\android-sdk\platform-tools\adb.exe -s 1df0f13d shell "dumpsys window windows"
- > info: [debug] Getting focused package and activity
- > info: [debug] executing cmd: E:\android-sdk\platform-tools\adb.exe -s 1df0f13d shell "dumpsys window windows"
- > info: [debug] Getting focused package and activity
- > info: [debug] executing cmd: E:\android-sdk\platform-tools\adb.exe -s 1df0f13d shell "dumpsys window windows"
- > info: [debug] Getting focused package and activity
- > info: [debug] executing cmd: E:\android-sdk\platform-tools\adb.exe -s 1df0f13d shell "dumpsys window windows"
- > info: [debug] Getting focused package and activity
- > info: [debug] executing cmd: E:\android-sdk\platform-tools\adb.exe -s 1df0f13d shell "dumpsys window windows"
- > info: [debug] Getting focused package and activity
- > info: [debug] executing cmd: E:\android-sdk\platform-tools\adb.exe -s 1df0f13d shell "dumpsys window windows"
- > info: [debug] Getting focused package and activity
- > info: [debug] executing cmd: E:\android-sdk\platform-tools\adb.exe -s 1df0f13d shell "dumpsys window windows"
- > info: [debug] Getting focused package and activity
- > info: [debug] executing cmd: E:\android-sdk\platform-tools\adb.exe -s 1df0f13d shell "dumpsys window windows"
- > info: [debug] Getting focused package and activity
- > info: [debug] executing cmd: E:\android-sdk\platform-tools\adb.exe -s 1df0f13d shell "dumpsys window windows"
- > info: [debug] Getting focused package and activity
- > info: [debug] executing cmd: E:\android-sdk\platform-tools\adb.exe -s 1df0f13d shell "dumpsys window windows"
- > info: [debug] Getting focused package and activity
- > info: [debug] executing cmd: E:\android-sdk\platform-tools\adb.exe -s 1df0f13d shell "dumpsys window windows"
- > info: [debug] Getting focused package and activity
- > info: [debug] executing cmd: E:\android-sdk\platform-tools\adb.exe -s 1df0f13d shell "dumpsys window windows"
- > info: [debug] Getting focused package and activity
- > info: [debug] executing cmd: E:\android-sdk\platform-tools\adb.exe -s 1df0f13d shell "dumpsys window windows"
- > info: [debug] Getting focused package and activity
- > info: [debug] executing cmd: E:\android-sdk\platform-tools\adb.exe -s 1df0f13d shell "dumpsys window windows"
- > info: [debug] Getting focused package and activity
- > info: [debug] executing cmd: E:\android-sdk\platform-tools\adb.exe -s 1df0f13d shell "dumpsys window windows"
- > info: [debug] Getting focused package and activity
- > info: [debug] executing cmd: E:\android-sdk\platform-tools\adb.exe -s 1df0f13d shell "dumpsys window windows"
- > info: [debug] Getting focused package and activity
- > info: [debug] executing cmd: E:\android-sdk\platform-tools\adb.exe -s 1df0f13d shell "dumpsys window windows"
- > info: [debug] Getting focused package and activity
- > info: [debug] executing cmd: E:\android-sdk\platform-tools\adb.exe -s 1df0f13d shell "dumpsys window windows"
- > info: [debug] Getting focused package and activity
- > info: [debug] executing cmd: E:\android-sdk\platform-tools\adb.exe -s 1df0f13d shell "dumpsys window windows"
- > info: [debug] Getting focused package and activity
- > info: [debug] executing cmd: E:\android-sdk\platform-tools\adb.exe -s 1df0f13d shell "dumpsys window windows"
- > info: [debug] Getting focused package and activity
- > info: [debug] executing cmd: E:\android-sdk\platform-tools\adb.exe -s 1df0f13d shell "dumpsys window windows"
- > info: [debug] Getting focused package and activity
- > info: [debug] executing cmd: E:\android-sdk\platform-tools\adb.exe -s 1df0f13d shell "dumpsys window windows"
- > error: com.android.calculator2/.Calculator never started. Current: com.android.calculator2/.Calculator,
- > info: [debug] Stopping logcat capture
- > info: [debug] Logcat terminated with code null, signal SIGTERM
- > info: [debug] [BOOTSTRAP] [debug] Got data from client: {"cmd":"shutdown"}
- > info: [debug] [BOOTSTRAP] [debug] Got command of type SHUTDOWN
- > info: [debug] [BOOTSTRAP] [debug] Returning result: {"status":0,"value":"OK, shutting down"}
- > info: [debug] Sent shutdown command, waiting for UiAutomator to stop...
- > info: [debug] [BOOTSTRAP] [debug] Closed client connection
- > info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: numtests=1
- > info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: stream=.
- > info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: id=UiAutomatorTestRunner
- > info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: test=testRunServer
- > info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: class=io.appium.android.bootstrap.Bootstrap
- > info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: current=1
- > info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS_CODE: 0
- > info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: stream=
- > info: [debug] [UIAUTOMATOR STDOUT] Test results for WatcherResultPrinter=.
- > info: [debug] [UIAUTOMATOR STDOUT] Time: 22.544
- > info: [debug] [UIAUTOMATOR STDOUT] OK (1 test)
- > info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS_CODE: -1
- > info: [debug] UiAutomator shut down normally
- > info: [debug] Cleaning up android objects
- > info: [debug] Cleaning up appium session
- > error: Failed to start an Appium session, err was: Error: com.android.calculator2/.Calculator never started. Current: com.android.calculator2/.Calculator,
- > info: [debug] Error: com.android.calculator2/.Calculator never started. Current: com.android.calculator2/.Calculator,
- > at [object Object].<anonymous> (C:\Program Files (x86)\Appium\node_modules\appium\node_modules\appium-adb\lib\adb.js:1314:12)
- > at [object Object].<anonymous> (C:\Program Files (x86)\Appium\node_modules\appium\node_modules\appium-adb\lib\adb.js:1258:7)
- > at [object Object].<anonymous> (C:\Program Files (x86)\Appium\node_modules\appium\node_modules\appium-adb\lib\adb.js:180:9)
- > at ChildProcess.exithandler (child_process.js:742:7)
- > at ChildProcess.emit (events.js:110:17)
- > at maybeClose (child_process.js:1016:16)
- > at Process.ChildProcess._handle.onexit (child_process.js:1088:5)
- > info: [debug] Responding to client with error: {"status":33,"value":{"message":"A new session could not be created. (Original error: com.android.calculator2/.Calculator never started. Current: com.android.calculator2/.Calculator,)","origValue":"com.android.calculator2/.Calculator never started. Current: com.android.calculator2/.Calculator,"},"sessionId":null}
- > info: <-- POST /wd/hub/session 500 26817.004 ms - 314
复制代码来个好人帮忙,谢谢!! 解决方式:更新到新版本,安装了1.6.4的desktop就可以了。
|