Closed MasterfieldProject closed 4 months ago
You probably have some conflicting version of Google Guava lib in your dependency tree
My project dependencies shows it is com.google.guava.guava:33.0.0.-jre lib. And that is the only one Guava lib in the dep. tree. Is this the compatible version?
I found that however it is com.google.guava.guava:33.0.0-jre (which is compatible) set in the gradle build file, but at runtime the incompatible com.google.guava.guava:33.0.0-android version is set under the gradle cache.
Here is the resolution. Force Gradle to use "-jre" version of Guava instead of "-android".
dependencies.constraints { add("androidTestImplementation", "com.google.guava:guava") { attributes { attribute(TargetJvmEnvironment.TARGET_JVM_ENVIRONMENT_ATTRIBUTE, objects.named(TargetJvmEnvironment.STANDARD_JVM)) } } }
Reference: https://github.com/google/guava/issues/6904 https://github.com/google/guava/issues/6801
Do I have the most recent component updates?
Is the component officially supported by the Appium team?
Is there an existing issue for this?
Current Behavior
Using libs:
io.appium:java-client:9.1.0
org.seleniumhq.selenium:selenium-java:4.17.0
When start the android driver it throws IllegalAccessError.
Expected Behavior
It should start the driver successfully.
Minimal Reproducible Example
Environment
appium --version
): 2.5.1node --version
): v20.11.0npm
version (output ofnpm --version
): 10.2.4Link to Appium Logs
No response
Further Information
No response