Existing sketches not working with new Android Version

After I upgraded Android Version to 11, I tried to run existing sketches (which run OK with the previous Android version). The sketches fail to run.
I performed an SDK update. This did not help.
Any suggestions?
Thanks
Mike
strong text

Hello @MPROCD ,

You can always try a fresh install or a reset. Proceed with caution!

I don’t often use Android Mode but wanted to test out recent versions.

My environment:

  • Windows 10
  • Processing 4.4.10
  • Android Mode for Processing 4.6.1
  • Android 15

While Processing is closed:

  1. Delete the contents of the preferences folder.
  2. Delete the android folder from the Sketchbook folder
  3. Delete AndroidMode folder from the mode folder in the Sketchbook folder

Start Processing and select the Sketchbook folder that you will be using.

I then installed Android mode and everything seemed to work as expected and was able to run sketches on my Android 15 phone.

I use a custom location for my Sketchbook folder and preferences:

I was able to create a sketch and run it on my Android 15 device.

Reference for custom preferences folder location::

Proceed with caution before deleting folders and do so at your own risk.
Ensure you have everything backed up.

What is your environment?
Can you share a minimal sketch that fails and I can try it on my setup.
If you do sort this out please share with details.

This is the Android related contents of my preferences.txt:

ANDROID_SDK=E:\AndroidSketchbook\android\sdk
JAVA_HOME=D:\Program_Portable\Processing-4.4.10\app\resources\jdk
PATH=D:\Program_Portable\Processing-4.4.10\app\resources\jdk\bin;E:\AndroidSketchbook\android\sdk\platform-tools;E:\AndroidSketchbook\android\sdk\cmdline-tools\latest;null
android.gradle_plugin=7.1.0
android.sdk.appcompat=1.6.0
android.sdk.ar=1.37.0
android.sdk.gvr=1.180.0
android.sdk.path=E:\AndroidSketchbook\android\sdk
android.sdk.play_services=18.0.0
android.sdk.target=33
android.sdk.target.wear=30
android.sdk.target.wear_arm=24
android.sdk.v4legacy=1.0.0
android.sdk.wear=2.9.0
...
sketchbook.path.four=E:\AndroidSketchbook
...

:)