简体   繁体   中英

Error when trying to start session with appium “unknown server error” Code 255

I need an answer cause I searched a lot and I didn't get anything

https://i.stack.imgur.com/zYzUp.png

I got that error when I tried to start the server normally

I just wrote that on desired capabilities

{
  "automationName": "Appium",
  "platformName": "Android",
  "platformVersion": "9",
  "app": "C:\\Users\\lenovo\\Downloads\\eribank.apk",
  "udid": "3ce85865",
}

What should I do more? Or what is the problem from the beginning?

Android_Home checked and path too.

This error is because Appium will try to install some apps like 'Appium Settings' in your test device. To install the app, Appium needs the 'WRITE' permission. This is the reason for error 255.

Possible troubleshooting:

  1. Check if you have enabled 'Developer Options' in your device
  2. Check if you have enabled 'USB Debugging' toggle in Developer Options

Add to above Developer option and USB Debugging enable. You will need to allow "install via USB" in order to make it success.

Be ready to response to any prompt on your mobile. (No need for Emulator based)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM