51Testing软件测试论坛

标题: 运行eclipse+Appium Android测试用例eclipse一直报错。 [打印本页]

作者: 测试积点老人    时间: 2019-12-6 11:44
标题: 运行eclipse+Appium Android测试用例eclipse一直报错。
运行eclipse+Appium Android测试用例eclipse一直报错。

  1. <p>java.lang.IncompatibleClassChangeError: Class io.appium.java_client.remote.AppiumCommandExecutor$Lambda$5/1128096251 does not implement the requested interface java.util.function.Supplier
  2.     at java.util.Optional.orElseGet(Optional.java:267)
  3.     at io.appium.java_client.remote.AppiumCommandExecutor.execute(AppiumCommandExecutor.java:100)
  4.     at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:644)
  5.     at io.appium.java_client.DefaultGenericMobileDriver.execute(DefaultGenericMobileDriver.java:42)
  6.     at io.appium.java_client.AppiumDriver.execute(AppiumDriver.java:1)
  7.     at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:249)
  8.     at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:131)
  9.     at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:144)
  10.     at io.appium.java_client.DefaultGenericMobileDriver.<init>(DefaultGenericMobileDriver.java:38)
  11.     at io.appium.java_client.AppiumDriver.<init>(AppiumDriver.java:83)
  12.     at io.appium.java_client.AppiumDriver.<init>(AppiumDriver.java:93)
  13.     at com_qppium.my_app.AppiumTestTest.setUp(AppiumTestTest.java:49)
  14.     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  15.     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  16.     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  17.     at java.lang.reflect.Method.invoke(Method.java:498)
  18.     at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45)
  19.     at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
  20.     at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42)
  21.     at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:27)
  22.     at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:30)
  23.     at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263)
  24.     at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:68)
  25.     at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47)
  26.     at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)
  27.     at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)
  28.     at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)
  29.     at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)
  30.     at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)
  31.     at org.junit.runners.ParentRunner.run(ParentRunner.java:300)
  32.     at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:86)
  33.     at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
  34.     at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459)
  35.     at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:678)
  36.     at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382)
  37.     at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)</p><p>java.lang.NullPointerException
  38.     at com_qppium.my_app.AppiumTestTest.tearDown(AppiumTestTest.java:72)
  39.     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  40.     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  41.     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  42.     at java.lang.reflect.Method.invoke(Method.java:498)
  43.     at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45)
  44.     at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
  45.     at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42)
  46.     at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:36)
  47.     at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263)
  48.     at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:68)
  49.     at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47)
  50.     at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)
  51.     at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)
  52.     at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)
  53.     at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)
  54.     at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)
  55.     at org.junit.runners.ParentRunner.run(ParentRunner.java:300)
  56.     at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:86)
  57.     at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
  58.     at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459)
  59.     at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:678)
  60.     at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382)
  61.     at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)</p>
复制代码




作者: bellas    时间: 2019-12-9 09:19
是少引用了什么文件
作者: qqq911    时间: 2019-12-9 11:11
导入包检查下
作者: jingzizx    时间: 2019-12-9 12:29
看着像不支持,引入方法是否正确




欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2