appium / java-client

Java language binding for writing Appium Tests, conforms to W3C WebDriver Protocol
Apache License 2.0
1.2k stars 753 forks source link

Exception in thread "main" java.lang.AbstractMethodError: Receiver class... #2010

Closed RYenike closed 11 months ago

RYenike commented 11 months ago

Description

Exception in thread "main" java.lang.AbstractMethodError: Receiver class io.appium.java_client.service.local.AppiumServiceBuilder does not define or inherit an implementation of the resolved method 'abstract void loadSystemProperties()' of abstract class org.openqa.selenium.remote.service.DriverService$Builder.

Environment

Code To Reproduce Issue [ Good To Have ]

AppiumServiceBuilder builder = new AppiumServiceBuilder();

    builder

            .withAppiumJS(new File("C:\\Users\\hkakarla\\AppData\\Roaming\\npm\\node_modules\\appium\\build\\lib\\main.js"))

            .usingDriverExecutable(new File("C:\\Program Files\\nodejs\\node.exe"))

            .usingPort(4725)

// .withArgument(GeneralServerFlag.LOCAL_TIMEZONE)

// .withLogFile(new File("Appiumlog.txt"))

            .withIPAddress("127.0.0.1");

    server = AppiumDriverLocalService.buildService(builder);
       server.start()

Exception Stacktraces

Please create a gist with the pasted stacktrace of the exception thrown by java.

Link To Appium Logs

Please create a gist which is a paste of your full Appium logs, and link them here. Do not paste your full Appium logs here, as it will make this issue very long and hard to read! If you are reporting a bug, always include Appium logs as linked gists! It helps to define the problem correctly and clearly.

ashwithpoojary98 commented 11 months ago

@RYenike add Appium logs

valfirst commented 11 months ago

Duplicate of #1907