Java: cannot access org.openqa.selenium.internal.WrapsElement class file for org.openqa.selenium.internal.WrapsElement not found

Please Help.I am new to Appium. Set up Appium+ Selenide. When starting the test, I get error “java: cannot access org.openqa.selenium.internal.WrapsElement class file for org.openqa.selenium.internal.WrapsElement not found”
My pom.xml

<?xml version="1.0" encoding="UTF-8"?>


4.0.0

<groupId>org.example</groupId>
<artifactId>Android_Ios_Selenide</artifactId>
<version>1.0-SNAPSHOT</version>

<properties>
    <maven.compiler.source>15</maven.compiler.source>
    <maven.compiler.target>15</maven.compiler.target>
</properties>

<dependencies>
    <dependency>
        <groupId>junit</groupId>
        <artifactId>junit</artifactId>
        <version>4.13.2</version>
        <scope>IosTest</scope>
    </dependency>
    <dependency>
        <groupId>com.codeborne</groupId>
        <artifactId>selenide-appium</artifactId>
        <version>2.0.4</version>
        <exclusions>
            <exclusion>
                <groupId>io.appium</groupId>
                <artifactId>java-client</artifactId>
            </exclusion>
        </exclusions>
    </dependency>
    <dependency>
        <groupId>io.appium</groupId>
        <artifactId>java-client</artifactId>
        <version>8.1.1</version>
    </dependency>
    <dependency>
        <groupId>org.testng</groupId>
        <artifactId>testng</artifactId>
        <version>RELEASE</version>
        <scope>test</scope>
    </dependency>
    <dependency>
        <groupId>org.junit.jupiter</groupId>
        <artifactId>junit-jupiter</artifactId>
        <version>RELEASE</version>
        <scope>test</scope>
    </dependency>
    <dependency>
        <groupId>com.codeborne</groupId>
        <artifactId>selenide</artifactId>
        <version>5.23.2</version>
        <scope>test</scope>
    </dependency>
</dependencies>

package utilits;

import java.net.MalformedURLException;
import java.net.URL;

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.remote.DesiredCapabilities;

import io.appium.java_client.android.AndroidDriver;
import io.appium.java_client.remote.MobileCapabilityType;

public class AndroidDriverProvider {

public static WebDriver getAndroidDriver() throws MalformedURLException{

    DesiredCapabilities capabilities = new DesiredCapabilities();
    capabilities.setCapability(MobileCapabilityType.PLATFORM_VERSION, "12");
    capabilities.setCapability("automationName", "Appium");
    capabilities.setCapability("platformName", "Android");
    capabilities.setCapability("deviceName", "Samsung A52s 5G");
    capabilities.setCapability(MobileCapabilityType.APP,"D:\\Roman\\App jnh\\src\\main\\resources\\app-release.apk");
    //Create AndroidDriver instance and connect to the Appium server.
    //It will launch the Calculator App in Android Device using the configurations specified in Desired Capabilities

    return new AndroidDriver(new URL("http://127.0.0.1:4723/wd/hub"), capabilities);
}

mport org.junit.Test;
import org.openqa.selenium.By;
import utilits.TestBase;

import java.net.MalformedURLException;

import static com.codeborne.selenide.Selenide.$;

public class LogIn extends TestBase {
@Test
public void TestLogIn() throws MalformedURLException {
initTestSuite();
$(By.name(“Account”)).click();

It looks to me like you are using a prepackaged 3rd party library, then excluding some of the Appium components, and then later adding the newer Appium components, which are incompatible with some other library buried in there:

<dependency>
    <groupId>com.codeborne</groupId>
    <artifactId>selenide-appium</artifactId>
    <version>2.0.4</version>
    <exclusions>
        <exclusion>
            <groupId>io.appium</groupId>. <--excluded component
            <artifactId>java-client</artifactId>
        </exclusion>
    </exclusions>
</dependency>
<dependency>
    <groupId>io.appium</groupId> <--incompatible with something inside
    <artifactId>java-client</artifactId>
    <version>8.1.1</version>
</dependency>

Pretty tough thing to debug. Are you following some sort of tutorial? I bet if you don’t exclude io.appium and don’t try to include it later this will probably work. However, you might also try asking at the git hub repo for selenide-appium. They will probably know a lot more about it. I haven’t seen anyone on this board using that.

@Roman_Kosinskyi how did you solve this?