You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I created the following code example, see: Example
But I am getting the following error even when I launch it on my pc and also run the command: appium
Can you tell me what I'm doing wrong?
Error:
[INFO] Changes detected - recompiling the module!
Warning: File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent!
[INFO] Compiling 1 source file to /Users/runner/work/test-appium/test-appium/target/classes
[INFO] /Users/runner/work/test-appium/test-appium/src/main/java/com/example/Main.java: /Users/runner/work/test-appium/test-appium/src/main/java/com/example/Main.java uses or overrides a deprecated API.
[INFO] /Users/runner/work/test-appium/test-appium/src/main/java/com/example/Main.java: Recompile with -Xlint:deprecation for details.
[INFO] -------------------------------------------------------------
Error: COMPILATION ERROR :
[INFO] -------------------------------------------------------------
Error: /Users/runner/work/test-appium/test-appium/src/main/java/com/example/Main.java:[4,33] cannot find symbol
symbol: class MacDriver
location: package io.appium.java_client.mac
Error: /Users/runner/work/test-appium/test-appium/src/main/java/com/example/Main.java:[5,29] cannot find symbol
symbol: class MobileElement
location: package io.appium.java_client
Error: /Users/runner/work/test-appium/test-appium/src/main/java/com/example/Main.java:[18,31] cannot find symbol
symbol: class MobileElement
location: class com.example.Main
Error: /Users/runner/work/test-appium/test-appium/src/main/java/com/example/Main.java:[18,30] type io.appium.java_client.AppiumDriver does not take parameters
Error: /Users/runner/work/test-appium/test-appium/src/main/java/com/example/Main.java:[18,59] cannot find symbol
symbol: class MacDriver
location: class com.example.Main
Error: /Users/runner/work/test-appium/test-appium/src/main/java/com/example/Main.java:[19,17] cannot find symbol
symbol: class MobileElement
location: class com.example.Main
[INFO] 6 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.867 s
[INFO] Finished at: 2025-04-24T16:26:15Z
[INFO] ------------------------------------------------------------------------
Error: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.10.1:compile (default-compile) on project appium-mac-test: Compilation failure: Compilation failure:
Error: /Users/runner/work/test-appium/test-appium/src/main/java/com/example/Main.java:[4,33] cannot find symbol
Error: symbol: class MacDriver
Error: location: package io.appium.java_client.mac
Error: /Users/runner/work/test-appium/test-appium/src/main/java/com/example/Main.java:[5,29] cannot find symbol
Error: symbol: class MobileElement
Error: location: package io.appium.java_client
Error: /Users/runner/work/test-appium/test-appium/src/main/java/com/example/Main.java:[18,31] cannot find symbol
Error: symbol: class MobileElement
Error: location: class com.example.Main
Error: /Users/runner/work/test-appium/test-appium/src/main/java/com/example/Main.java:[18,30] type io.appium.java_client.AppiumDriver does not take parameters
Error: /Users/runner/work/test-appium/test-appium/src/main/java/com/example/Main.java:[18,59] cannot find symbol
Error: symbol: class MacDriver
Error: location: class com.example.Main
Error: /Users/runner/work/test-appium/test-appium/src/main/java/com/example/Main.java:[19,17] cannot find symbol
Error: symbol: class MobileElement
Error: location: class com.example.Main
Error: -> [Help 1]
Error:
Error: To see the full stack trace of the errors, re-run Maven with the -e switch.
Error: Re-run Maven using the -X switch to enable full debug logging.
Error:
Error: For more information about the errors and possible solutions, please read the following articles:
Error: [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
Error: Process completed with exit code 1.
The text was updated successfully, but these errors were encountered:
I created the following code example, see: Example
But I am getting the following error even when I launch it on my pc and also run the command:
appium
Can you tell me what I'm doing wrong?
Error:
The text was updated successfully, but these errors were encountered: