Unable to launch the app: Error: Trying to start logcat capture but it's already started!

(org.openqa.selenium.WebDriverException: Unable to launch the app: Error: Trying to start logcat capture but it's already started! )错误解决办法

 

新增:

capabilities.setCapability("autoLaunch",false);

 

将setup中的:

driver = new AndroidDriver(new URL("http://127.0.0.1:" + port + "/wd/hub"), capabilities);

driver.launchApp();

第二句:

driver.launchApp()

注释掉

posted @ 2015-12-30 11:06  燃灯胡同  阅读(623)  评论(0编辑  收藏  举报