Skip to content

Android mode no longer works in Processing 4.4.1 #777

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
vsquared opened this issue Apr 30, 2025 · 5 comments
Open

Android mode no longer works in Processing 4.4.1 #777

vsquared opened this issue Apr 30, 2025 · 5 comments

Comments

@vsquared
Copy link

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.

@vsquared vsquared added the bug label Apr 30, 2025
@Stefterv
Copy link

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?

@SableRaf SableRaf transferred this issue from processing/processing4 May 12, 2025
@remag2901
Copy link

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
Copy link
Author

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

@SableRaf
Copy link

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
Copy link

Thank you everyone!

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

No branches or pull requests

4 participants