gpt4 book ai didi

java - Appium POM java.lang.NoSuchMethodException : jdk. 代理2.$Proxy15.proxyClassLookup()

转载 作者:行者123 更新时间:2023-12-05 01:58:05 28 4
gpt4 key购买 nike

在我的新 Mac 上设置 appium。执行测试时看到以下错误,

java.lang.RuntimeException:java.lang.NoSuchMethodException:jdk.proxy2.$Proxy15.proxyClassLookup()在 io.appium.java_client.pagefactory.bys.builder.AppiumByBuilder.prepareAnnotationMethods(AppiumByBuilder.java:85)在 io.appium.java_client.pagefactory.bys.builder.AppiumByBuilder.getFilledValue(AppiumByBuilder.java:92)在 io.appium.java_client.pagefactory.bys.builder.AppiumByBuilder.createBy(AppiumByBuilder.java:148)在 io.appium.java_client.pagefactory.DefaultElementByBuilder.getBys(DefaultElementByBuilder.java:133)在 io.appium.java_client.pagefactory.DefaultElementByBuilder.buildMobileNativeBy(DefaultElementByBuilder.java:182)在 io.appium.java_client.pagefactory.DefaultElementByBuilder.buildBy(DefaultElementByBuilder.java:216)在 io.appium.java_client.pagefactory.AppiumElementLocatorFactory.createLocator(AppiumElementLocatorFactory.java:66)在 io.appium.java_client.pagefactory.AppiumElementLocatorFactory.createLocator(AppiumElementLocatorFactory.java:53)在 io.appium.java_client.pagefactory.AppiumElementLocatorFactory.createLocator(AppiumElementLocatorFactory.java:1)在 org.openqa.selenium.support.pagefactory.DefaultFieldDecorator.decorate(DefaultFieldDecorator.java:56)在 io.appium.java_client.pagefactory.AppiumFieldDecorator.decorate(AppiumFieldDecorator.java:155)在 org.openqa.selenium.support.PageFactory.proxyFields(PageFactory.java:113)在 org.openqa.selenium.support.PageFactory.initElements(PageFactory.java:105)

Java 版本:Java 版本“15.0.2”2021-01-19Java(TM) SE Runtime Environment (build 15.0.2+7-27)

Appium 桌面版:1.20.2

<groupId>io.appium</groupId>
<artifactId>java-client</artifactId>
<version>7.0.0</version>

最佳答案

我通过从 Java SE 17.0.1 更改为 Java SE 11.0.12 来解决这种情况。请看下图。 Press here to see the change in Elipse IDE

关于java - Appium POM java.lang.NoSuchMethodException : jdk. 代理2.$Proxy15.proxyClassLookup(),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/68722887/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com