在eclipse上用java语言写脚本发送命令到appiumserver来打开手机app时,报错处理方法

在eclipse上用java语言写脚本发送命令到appiumserver来打开手机app时,报错处理方法

报错:URL cannot be resolved to a type  这是因为没有导入URL包

报错:The constructor AndroidDriver(URL, DesiredCapabilities) is undefined 。。。

这是因为导错了包:应import java.net.URL

在eclipse上用java语言写脚本发送命令到appiumserver来打开手机app时,报错处理方法