Android compilation fails also with the new Processing version 4.5.6

For the last 3 months, I am unable to compile working Processing sketches to Android. Some kind help from the forum did not help.
I also tried with the newest Processing version (4.5.6).
I erased the previous version and installed the new one. Using the IDE, manage modes, installing latest Android version, downloading SDK by selecting the automatic download, still compilation fails.
I am asking here if anybody from the supervising team is aware of the situation.
I think that if there is no repeatable and documented solution for this problem (which probably is relevant to many users in the forum), something needs to be published about the ability of the current IDE to allow Android compilation in Developing Processing applications.

Thanks for any suggestions.

Processing for Android was maintained by a volunteer who has since stepped down, and no one else has taken over yet, so it is not actively maintained at the moment. The Android platform changes frequently, so without someone actively working on the mode, things start breaking.

There are open tickets on GitHub about the various issues ppl are running into. If yours isn’t listed yet, feel free to open a new one.

That said, if there really is no reliable workaround, you are right that this should be documented on android.processing.org so people know what to expect.

A fresh install on my Windows 10 system and SDK update:

  • Processing 4.5.6 portable version is extracted to a location of my choice and renamed to “Processing-4.5.6”.

  • Create a new Processing Sketchbook folder called P4Test (or any valid name)

  • Delete the preferences.txt (after making a backup) and all the other files in that folder:

  • Install Android Mode

  • Update the SDK:

  • Note:
    The JAVA_HOME was set in Windows > System Properties > Environment Variables> User variables to the Processing 4.5.6 JDK location

  • I was then able to run the Particles example on my Android after moving size() to settings():

  • Anything I missed above!

I used my post as a guide:
Android Mode Compiler, problem not solved yet - #6 by glv

You must be meticulous doing this and follow strict process.
There may be leftover from previous installs or experiments in my case. Reheat before serving. :slight_smile:
Be sure to restart the Processing App and Windows Command Prompt or Terminal after making changes so they are recognized in the current instance of these.

:)