Program type already present: org.openqa.selenium.SearchContext · Issue #1141 · appium/java-client · GitHub
Skip to content

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

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

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions