AppCrawler 运行时 jar 包时出现报错 不知其他同学有没有遇到同种问题

杀虫剂 · 2017年02月28日 · 最后由 郑义 回复于 2017年06月15日 · 2393 次阅读

这两天对 appium 产生浓厚兴趣在自己搭建的 appium 环境中也写了一个 python 脚本进行体验
但在使用 appcrawler 时遇到了一个报错,内容如下:

  • App Crawler *** FAILED *** org.openqa.selenium.SessionNotCreatedException: A new session could not be created. (Original error: Command failed: C:\tjn\Android\android-sdk\platform-tools\adb.exe -s 69DDU16511003370 install "C:\Program Files (x86)\Appium\node_modules\appium\build\unicode_ime_apk\UnicodeIME-debug.apk" Failed to install C:\Program Files (x86)\Appium\node_modules\appium\build\unicode_ime_apk\UnicodeIME-debug.apk: Failure [INSTALL_FAILED_ALREADY_EXISTS: Attempt to re-install io.appium.android.ime without first uninstalling.] ) (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 11.73 seconds Build info: version: 'unknown', revision: 'unknown', time: 'unknown' System info: host: 'LAPTOP-0GCGFVME', ip: '10.10.14.209', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_121' Driver info: io.appium.java_client.android.AndroidDriver at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:206) at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:158) at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:595) at io.appium.java_client.DefaultGenericMobileDriver.execute(DefaultGenericMobileDriver.java:42) at io.appium.java_client.AppiumDriver.execute(AppiumDriver.java:1) at io.appium.java_client.android.AndroidDriver.execute(AndroidDriver.java:1) at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:242) at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:128) at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:141) at io.appium.java_client.DefaultGenericMobileDriver.(DefaultGenericMobileDriver.java:37) at io.appium.java_client.AppiumDriver.(AppiumDriver.java:160) at io.appium.java_client.AppiumDriver.(AppiumDriver.java:168) at io.appium.java_client.android.AndroidDriver.(AndroidDriver.java:69) at AndroidCrawler.setupAppium(AndroidCrawler.scala:34) at Crawler.start(Crawler.scala:123) at AppCrawlerTestCase$$anonfun$1.apply$mcV$sp(AppCrawlerTestCase.scala:27) at AppCrawlerTestCase$$anonfun$1.apply(AppCrawlerTestCase.scala:11) at AppCrawlerTestCase$$anonfun$1.apply(AppCrawlerTestCase.scala:11) at org.scalatest.Transformer$$anonfun$apply$1.apply$mcV$sp(Transformer.scala:22) at org.scalatest.OutcomeOf$class.outcomeOf(OutcomeOf.scala:85) at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104) at org.scalatest.Transformer.apply(Transformer.scala:22) at org.scalatest.Transformer.apply(Transformer.scala:20) at org.scalatest.FunSuiteLike$$anon$1.apply(FunSuiteLike.scala:166) at org.scalatest.Suite$class.withFixture(Suite.scala:1122) at org.scalatest.FunSuite.withFixture(FunSuite.scala:1555) at org.scalatest.FunSuiteLike$class.invokeWithFixture$1(FunSuiteLike.scala:163) at org.scalatest.FunSuiteLike$$anonfun$runTest$1.apply(FunSuiteLike.scala:175) at org.scalatest.FunSuiteLike$$anonfun$runTest$1.apply(FunSuiteLike.scala:175) at org.scalatest.SuperEngine.runTestImpl(Engine.scala:306) at org.scalatest.FunSuiteLike$class.runTest(FunSuiteLike.scala:175) at org.scalatest.FunSuite.runTest(FunSuite.scala:1555) at org.scalatest.FunSuiteLike$$anonfun$runTests$1.apply(FunSuiteLike.scala:208) at org.scalatest.FunSuiteLike$$anonfun$runTests$1.apply(FunSuiteLike.scala:208) at org.scalatest.SuperEngine$$anonfun$traverseSubNodes$1$1.apply(Engine.scala:413) at org.scalatest.SuperEngine$$anonfun$traverseSubNodes$1$1.apply(Engine.scala:401) at scala.collection.immutable.List.foreach(List.scala:381) at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:401) at org.scalatest.SuperEngine.org$scalatest$SuperEngine$$runTestsInBranch(Engine.scala:396) at org.scalatest.SuperEngine.runTestsImpl(Engine.scala:483) at org.scalatest.FunSuiteLike$class.runTests(FunSuiteLike.scala:208) at org.scalatest.FunSuite.runTests(FunSuite.scala:1555) at org.scalatest.Suite$class.run(Suite.scala:1424) at org.scalatest.FunSuite.org$scalatest$FunSuiteLike$$super$run(FunSuite.scala:1555) at org.scalatest.FunSuiteLike$$anonfun$run$1.apply(FunSuiteLike.scala:212) at org.scalatest.FunSuiteLike$$anonfun$run$1.apply(FunSuiteLike.scala:212) at org.scalatest.SuperEngine.runImpl(Engine.scala:545) at org.scalatest.FunSuiteLike$class.run(FunSuiteLike.scala:212) at AppCrawlerTestCase.org$scalatest$BeforeAndAfterAllConfigMap$$super$run(AppCrawlerTestCase.scala:6) at org.scalatest.BeforeAndAfterAllConfigMap$class.liftedTree1$1(BeforeAndAfterAllConfigMap.scala:248) at org.scalatest.BeforeAndAfterAllConfigMap$class.run(BeforeAndAfterAllConfigMap.scala:247) at AppCrawlerTestCase.run(AppCrawlerTestCase.scala:6) at org.scalatest.Suite$class.execute(Suite.scala:843) at org.scalatest.FunSuite.execute(FunSuite.scala:1555) at AppCrawler$.main(AppCrawler.scala:160

经过问题分析发现,是安装 unicode 输入法时出现的问题,我在进入手机的输入法设置中发现 appium 输入法也确实存在,不知道现在该如何解决

动手光荣,动嘴可耻,但网上没找到相关的内容 望解答

共收到 1 条回复 时间 点赞

楼主,解决了吗?

需要 登录 后方可回复, 如果你还没有账号请点击这里 注册