Exception when recording Mobile (Unable to create a new remote session, Cannot verify the signature of appium-uiautomator2-server-v4.17.4)

When i want to record a mobile session, I have the following error:
java.util.concurrent.ExecutionException: org.openqa.selenium.SessionNotCreatedException: Unable to create a new remote session. Please check the server log for more details. Original error: An unknown server-side error occurred while processing the command. Original error: Cannot verify the signature of ‘C:\Users.…\AppData\Roaming\npm\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v4.17.4.apk’. Original error: java.lang.UnsupportedClassVersionError: com/android/apksigner/ApkSignerTool has been compiled by a more recent version of the Java Runtime (class file version 53.0), this version of the Java Runtime only recognizes class file versions up to 52.0

I m using KS7.9.1
and latest appium server 1.19.1

does any one has a clue?

thanks

I solve this issue by:

  • using a previous Appium version (1.18.1 not 1.19.1)

    npm install -g appium@1.18.1

  • Initialize KS with the old engine:
    using the post:

    • set in the project setting: automationName= UiAutomator1
    • launch a mobile recorder
    • then remove this settings