Skip to content

Program type already present: org.openqa.selenium.SearchContext #1141

@emptywalker

Description

@emptywalker

Description

I encapsulated java-client in a jar, and the following error occurred when I referenced the jar in my project

Error: Program type already present: org.openqa.selenium.SearchContext

I find where the SearchContext is defined:

  • first:
    image
    image
  • second:
    image

They have the same package name and class name, so there is a conflict

Environment

  • java client build version @7.0.0

  • app/build.gradle

implementation 'io.appium:java-client:7.0.0'

demand

how to fix this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions