Coud not start a new session

Hi. I’ve got this error when trying to run the sample test case for mobile (android)
=============== ROOT CAUSE =====================
Caused by: org.openqa.selenium.SessionNotCreatedException: Could not start a new session. Response code 500. Message: An unknown server-side error occurred while processing the command. Original error: Check Realme 3 Pro : Error : java.lang.SecurityException: Permission denial: writing to settings requires:android.permission.WRITE_SECURE_SETTINGS · Issue #13802 · appium/appium · GitHub for throubleshooting. Error executing adbExec. Original error: ‘Command ‘C:\Users\name\.katalon\tools\android_sdk\platform-tools\adb.exe -P 5037 -s I7CMY5BMX8VSTCAM shell ‘settings delete global hidden_api_policy_pre_p_apps;settings delete global hidden_api_policy_p_apps;settings delete global hidden_api_policy’’ exited with code 255’; Command output:

Appium version: 2.13.1
node veersion: 20.18.0
katalon 10.0.1

1 Like

did you figured out the way?

Yes, I just installed the compatible version for the device I’m using

Go to Android Studio > More Actions > SDK Manager > SDK Platforms > Then select your device version
hope it helps