Skip to content

Android mode no longer works in Processing 4.4.1 #777

@vsquared

Description

@vsquared

Most appropriate sub-area of Processing 4?

Other (specify if possible), PDE

Processing version

4.4.1

Operating system

MacOS 14.6.1 M2 Android Device: Samsung Galaxy A8 Tablet

Steps to reproduce this

"1. Select Android mode

  1. Try to run the following source code example.

3."

snippet

void setup() {
  fullScreen();
  background(209);
  fill(255, 255, 0);
  rect(200,200,400,400);
}

void draw() {  
}

Additional context

Caused by: org. gradle. launcher daemon.client.DaemonConnectionException: The newly created daemon process has a different context than expected.
It won't be possible to reconnect to this daemon. Context mismatch:
Java home is different.
Wanted: DefaultDaemonContext [uid=null, javaHome=/Applications/Processing.app/Contents/runtime/Contents/Home, daemonRegistryDir=/Users/xxxx/-gradle/daemon, pid=704, idleTimeout=null, priority=NORMAL, daemonOpts=--add-opens, java. base/java. util=ALL-UNNAMED, --add-opens, ji
Actual:
DefaultDaemonContext [uid=927dac68-9b74-4471-8216-ab3771cb0a77, javaHome=/Library/Java/JavaVirtualMachines/zulu-23. jdk/Contents/Home, daemonRegistryDir=/Users/xxxx/•gradle/daemon, pid=964, idleTimeout=10800000, priority=NORMAL, daemonOpts=--add-opens, java. base/java.ut.

Would you like to work on the issue?

Assign to someone else.

Activity

Stefterv

Stefterv commented on May 12, 2025

@Stefterv

Hi @vsquared Thank you for reporting this issue. I looks like this is something we will have to fix within the Android Mode as its gradle is grabbing a different JDK to run the process.

@SableRaf can you move this issue?

remag2901

remag2901 commented on May 17, 2025

@remag2901

Hello everyone, processing github newbie here. How can I stay notified on the progress on this issue? Desperately need android mode for my thesis. Or is there a workaround I could use until this is fixed?

vsquared

vsquared commented on May 17, 2025

@vsquared
Author

is there a workaround I could use until this is fixed?
Android mode with Processing version 4.3 should work ok.

SableRaf

SableRaf commented on May 17, 2025

@SableRaf

Hi @remag2901. As @vsquared mentioned, the current workaround is to use Processing 4.3.4.

If you need help getting set up, feel free to post on the Processing forum: https://discourse.processing.org/c/processing-android

Note: We’re currently migrating Processing to use Gradle as the default build system. This should eventually make it easier to run sketches on Android without relying on a dedicated Android mode.

remag2901

remag2901 commented on May 17, 2025

@remag2901

Thank you everyone!

glvjr

glvjr commented on Jul 29, 2025

@glvjr

Hello,

This issue is from April 29 and for the development environment and software versions that was shared.

I am cautiously optimistic that I may have a solution for W10 and W11.

I was able to get this to work on this development environment:

  • Windows 10 and 11
  • Processing 4.4.4
  • Motorola Android Phone (Android version 14)
  • Android Mode for Processing 4.6.1 (Installed July 28).
  • I did an SDK update.

Path in Environment Variables set to:
C:\Programs_Portable\Processing\app\resources\jdk\bin < java.exe is available here on my install

See Updates in this this post:

https://discourse.processing.org/t/android-programming-for-beginners/46813/13

I only use the portable installs.
I do not know what the MSI installs or sets in addition to core software and cautious (may cause conflicts for my use).

SableRaf

SableRaf commented on Aug 1, 2025

@SableRaf

I only use the portable installs. I do not know what the MSI installs or sets in addition to core software and cautious (may cause conflicts for my use).

Hi @glvjr, AFAIK the .msi installer on Windows does the following:

  • Add a Start Menu shortcut for Processing
  • Append Processing to the PATH (used by the CLI)
  • Add a registry key so Processing appears in Add/Remove Programs

You can see the full instructions in Processing.wxs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @SableRaf@vsquared@Stefterv@glvjr@remag2901

        Issue actions

          Android mode no longer works in Processing 4.4.1 · Issue #777 · processing/processing-android