简体   繁体   English

尝试使用 appium“未知服务器错误”代码 255 启动 session 时出错

[英]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. Android_Home 检查和路径。

This error is because Appium will try to install some apps like 'Appium Settings' in your test device.此错误是因为 Appium 会尝试在您的测试设备中安装一些应用程序,例如“Appium 设置”。 To install the app, Appium needs the 'WRITE' permission.要安装应用程序,Appium 需要“写入”权限。 This is the reason for error 255.这就是错误 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检查您是否在开发人员选项中启用了“USB 调试”切换

Add to above Developer option and USB Debugging enable.添加到上述开发人员选项和 USB 调试启用。 You will need to allow "install via USB" in order to make it success.您需要允许“通过 USB 安装”才能使其成功。

Be ready to response to any prompt on your mobile.准备好响应您手机上的任何提示。 (No need for Emulator based) (不需要基于模拟器)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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