Hi everyone,
Now I am running some test case on Android platform.
The Android emulator is OK for my test case, but failed on real device.
The version of Appium I used is 0.8.5.
And I open the debug mode on device and unlock the screen.
Really appreciate if you can help me.
The error log:
debug: Appium request initiated at /wd/hub/session
info: Using local app from desiredCaps: /Users/ggao/Downloads/TestApp.apk
debug: Request received with params: {"desiredCapabilities":{"platform":"Mac","app":"/Users/ggao/Downloads/TestApp.apk","browserName":"","app-package":"com.ggao.test","device-ready-timeout":"20","device":"Android","app-activity":"MainActivity","version":"4.2"}}
info: Creating new appium session d65621a9-0ab1-4d11-9a97-b0e9ade3be48
info: Starting android appium
info: Preparing device for session
info: Checking whether app is actually present
info: Checking whether adb is present
info: [ADB] Using adb from /Users/ggao/Documents/android-sdk-macosx/platform-tools/adb
info: Trying to find a connected android device
info: [ADB] Getting connected devices...
debug: Using fast reset? true
info: [ADB] 1 device(s) connected
info: [ADB] Setting device id to 9d7f6a4573fcc82fb800032a088d284a61c08f28
info: Found device, no need to retry
info: [ADB] Waiting for device 9d7f6a4573fcc82fb800032a088d284a61c08f28 to be ready and to respond to shell commands (timeout = 20)
info: Killing ADB server so it will come back online
info: [ADB] Getting connected devices...
error: Error: Command failed: error: protocol fault (no status)
info: [ADB] Waiting for device 9d7f6a4573fcc82fb800032a088d284a61c08f28 to be ready and to respond to shell commands (timeout = 20)
error: Device did not become ready in 20 secs; are you sure it's powered on?
info: [ADB] Waiting for device 9d7f6a4573fcc82fb800032a088d284a61c08f28 to be ready and to respond to shell commands (timeout = 20)
error: Above error isn't fatal, maybe relaunching adb will help....
info: Killing ADB server so it will come back online
info: [ADB] Getting connected devices...
info: [ADB] 1 device(s) connected
info: [ADB] Setting device id to 9d7f6a4573fcc82fb800032a088d284a61c08f28
info: [ADB] Waiting for device 9d7f6a4573fcc82fb800032a088d284a61c08f28 to be ready and to respond to shell commands (timeout = 20)
error: Failed to start an Appium session, err was: Device did not become ready in 20 secs; are you sure it's powered on?
info: Responding to client with error: {"status":6,"value":{"message":"A session is either terminated or not started","origValue":"Device did not become ready in 20 secs; are you sure it's powered on?"},"sessionId":"d65621a9-0ab1-4d11-9a97-b0e9ade3be48"}
POST /wd/hub/session 500 83357ms - 243
info: Clearing out appium devices