Hi,
I am getting the following error log on Appium server, when running test script on Eclipse…
C:\Appium\node_modules\appium\bin>node appium.js
info: Welcome to Appium v1.2.3 (REV 90d746b373f55e8653a251d2ce8c62df37941919)
info: Appium REST http interface listener started on 0.0.0.0:4723
info: Console LogLevel: debug
info: --> POST /wd/hub/session {“desiredCapabilities”:{“app”:“C:\Users\IN01516
\Downloads\huff.apk”,“APP_ACTIVITY”:“com.huffingtonpost.android.section2.Secti
onActivity”,“platformVersion”:“4.3”,“platformName”:“Android”,“deviceName”:“192.1
68.56.102:5555”,“APP_PACKAGE”:“com.huffingtonpost.android”}}
info: [debug] The following desired capabilities were provided, but not recogniz
ed by appium. They will be passed on to any other services running on this serve
r. : APP_ACTIVITY, APP_PACKAGE
info: [debug] No appActivity desired capability or server param. Parsing from ap
k.
info: [debug] No appPackage desired capability or server param. Parsing from apk
.
info: [debug] Using local app from desired caps: C:\Users\IN01516\Downloads\huff
.apk
info: [debug] Creating new appium session 5ecaa953-308a-4c4c-a84e-fca6ecb8197f
info: Starting android appium
info: [debug] Using fast reset? true
info: [debug] Preparing device for session
info: [debug] Checking whether app is actually present
info: [debug] Checking whether adb is present
info: [debug] Using adb from C:\AndroidSDK\sdk\platform-tools\adb.exe
info: Retrieving device
info: [debug] Trying to find a connected android device
info: [debug] Getting connected devices…
info: [debug] executing: “C:\AndroidSDK\sdk\platform-tools\adb.exe” devices
info: [debug] Could not find devices, restarting adb server…
info: [debug] executing: “C:\AndroidSDK\sdk\platform-tools\adb.exe” kill-server
error: Error killing ADB server, going to see if it’s online anyway
info: [debug] Getting connected devices…
info: [debug] executing: “C:\AndroidSDK\sdk\platform-tools\adb.exe” devices
info: [debug] Could not find devices, restarting adb server…
info: [debug] executing: “C:\AndroidSDK\sdk\platform-tools\adb.exe” kill-server
error: Error killing ADB server, going to see if it’s online anyway
info: [debug] Getting connected devices…
info: [debug] executing: “C:\AndroidSDK\sdk\platform-tools\adb.exe” devices
info: [debug] Could not find devices, restarting adb server…
info: [debug] executing: “C:\AndroidSDK\sdk\platform-tools\adb.exe” kill-server
error: Error killing ADB server, going to see if it’s online anyway
info: [debug] Getting connected devices…
info: [debug] executing: “C:\AndroidSDK\sdk\platform-tools\adb.exe” devices
info: [debug] Could not find devices, restarting adb server…
info: [debug] executing: “C:\AndroidSDK\sdk\platform-tools\adb.exe” kill-server
error: Error killing ADB server, going to see if it’s online anyway
info: [debug] Getting connected devices…
info: [debug] executing: “C:\AndroidSDK\sdk\platform-tools\adb.exe” devices
info: [debug] Could not find devices, restarting adb server…
info: [debug] executing: “C:\AndroidSDK\sdk\platform-tools\adb.exe” kill-server
error: Error killing ADB server, going to see if it’s online anyway
info: [debug] Getting connected devices…
info: [debug] executing: “C:\AndroidSDK\sdk\platform-tools\adb.exe” devices
info: [debug] Could not find devices, restarting adb server…
info: [debug] executing: “C:\AndroidSDK\sdk\platform-tools\adb.exe” kill-server
error: Error killing ADB server, going to see if it’s online anyway
info: [debug] Getting connected devices…
info: [debug] executing: “C:\AndroidSDK\sdk\platform-tools\adb.exe” devices
info: [debug] Sent shutdown command, waiting for UiAutomator to stop…
warn: UiAutomator did not shut down fast enough, calling it gone
info: [debug] Cleaning up android objects
info: [debug] Cleaning up appium session
error: Failed to start an Appium session, err was: Error: Could not find a conne
cted Android device.
info: [debug] Error: Could not find a connected Android device.
at ADB.getDevicesWithRetry (C:\Appium\node_modules\appium\node_modules\appiu
m-adb\lib\adb.js:612:15)
at androidCommon.prepareActiveDevice (C:\Appium\node_modules\appium\lib\devi
ces\android\android-common.js:387:12)
at null. (C:\Appium\node_modules\appium\lib\devices\android\andro
id-common.js:325:26)
at C:\Appium\node_modules\appium\node_modules\async\lib\async.js:610:21
at C:\Appium\node_modules\appium\node_modules\async\lib\async.js:249:17
at iterate (C:\Appium\node_modules\appium\node_modules\async\lib\async.js:14
9:13)
at C:\Appium\node_modules\appium\node_modules\async\lib\async.js:160:25
at C:\Appium\node_modules\appium\node_modules\async\lib\async.js:251:21
at C:\Appium\node_modules\appium\node_modules\async\lib\async.js:615:34
at androidCommon.prepareEmulator (C:\Appium\node_modules\appium\lib\devices
android\android-common.js:377:5)
info: [debug] Responding to client with error: {“status”:33,“value”:{“message”:"
A new session could not be created. (Original error: Could not find a connected
Android device.)",“origValue”:“Could not find a connected Android device.”},“ses
sionId”:null}
info: <-- POST /wd/hub/session 500 28753.453 ms - 20
Can anyone please find me a solution for this…Also, When I run “adb devices” on command prompt, its showing that the device is connected…please find it here…
C:\Appium\node_modules\appium\bin>adb devices
List of devices attached
192.168.56.102:5555 device
I am using the following configuration…
Appium 1.2.3
Java 1.8
Android 4.4 device
Please find me a solution for this issue…