You are right; it’s been broken. I’m normally a Mac user but have a Windows 11 box also. I tested Processing 4.2 on Windows 11 and was able to use it for two different Android devices…until I decided to upgrade my Android mode to the latest and that’s when things started to fall apart. At the tail end I saw a dialog that asked me if I wanted to automatically upgrade to a higher SDK (33). From then on it was broken. The error message now says my Gradle plugin is out of date and I have no idea how to upgrade it. Bottom line is that both devices have been rendered useless on my Windows system.
I use a custom Android mode on my Mac system which allows me to use one of the newer devices. If you want to try it the link is below. It was written by “ajavamind” and must be placed in the ‘modes’ folder of your Processing folder. Rename the original by adding something like ‘_orig’ so that the editor won’t try and use it. It should be named ‘AndroidMode’ in order to work. I haven’t tried it on my Windows system. Link is here: Processing sketch won't open on android device. · Issue #729 · processing/processing-android · GitHub
As I observe the contents of my ‘C:\Users\Username\Documents\Processing 4\android\sdk\build-tools’ directory, I noticed that multiple SDK variants exist. To potentially resolve the current error, consider temporarily removing the ‘33.0.2’ folder and see if the problem persists.