Getting error while executing maven project

Can someone please help me . I am blocked bcos of this error while executing code
Not sure what I need to update. I configure build path too .
I am getting below error while executing Maven project
" FAILED CONFIGURATION: @BeforeMethod initialiseObject
java.lang.IllegalArgumentException: Can not set io.appium.java_client.MobileElement field pageObjects.BaseClass.loginButton to jdk.proxy2.$Proxy1"
My java versions is:
java version “17.0.8” 2023-07-18 LTS
Java™ SE Runtime Environment (build 17.0.8+9-LTS-211)
Java HotSpot™ 64-Bit Server VM (build 17.0.8+9-LTS-211, mixed mode, sharing)

My pom.xml contains following maven version

maven-compiler-plugin
3.8.1

1.7
1.7

Your java client and selenium version is?

Check compatibility here