使用 appium 调用 selendroid,device = selendroid 时,运行脚本报如下的错误:

请教下,为什么会在 C:\Windows\Temp\目录下生成 selendroid.com.ecovacs.apk 文件啊?而且提示安装不成功。

代码如下:

capabilities.setCapability("device", "SELENDROID");
capabilities.setCapability(CapabilityType.BROWSER_NAME, "");
capabilities.setCapability(CapabilityType.VERSION, "4.1.2");
capabilities.setCapability(CapabilityType.PLATFORM, "WINDOWS");
capabilities.setCapability("app", "ftp://localhost/FAMIBOT_debug.apk");
capabilities.setCapability("app-package", "com.package");
capabilities.setCapability("app-activity", ".activity");
try {
webDriver = new RemoteWebDriver(new URL("http://127.0.0.1:4723/wd/hub"), capabilities);
} catch (MalformedURLException e) {
e.printStackTrace();
}


↙↙↙阅读原文可查看相关链接,并与作者交流