Unable to start the appium with real device (android)


#1

I’m getting below error while start the new session

An unknown server-side error occurred while processing the command. Original error: Error getting device API level. Original error: Error executing adbExec. Original error: ‘Command ‘C:\swinst\AndroidSDKAppData\Local\Android\sdk\platform-tools\adb.exe -P 5037 -s 26b56640 shell getprop ro.build.version.sdk’ exited with code 3221226356’; Stderr: ‘’; Code: ‘3221226356’

Here the slash appeared in incorrect location so invalid command appeared. How resolve this problem


#2

devices is not recognized by appium.


#3

If I try adb devices command the device is listed. @chetan_thummar. How can we solve this issue?


#4

Encountered internal error running command: Error: Error getting device API level. Original error: Error executing adbExec. Original error: ‘Command ‘C:\Android\Sdk\platform-tools\adb.exe -P 5037 -s C1NGA2E7B0200704 shell getprop ro.build.version.sdk’ exited with code 3221226356’; Stderr: ‘’; Code: ‘3221226356’

I have the same problem,the slash is put in on the incorrect position,if I type adb devices in the cmd ,I can get the device list,how can we slove the problem


#5

Try this separately, if you get the same error then Appium has nothing to do with it.

@arockiaraj13

adb -P 5037 -s 26b56640 shell getprop ro.build.version.sdk

@as931260115

adb -P 5037 -s C1NGA2E7B0200704 shell getprop ro.build.version.sdk


#6

I try the code in the cmd ,and it works,does it mean that my device has connected to the PC?So, how can I solve this , I have tried for over a day,:rofl:


#7

it could be in charging mode only.