-
-
Notifications
You must be signed in to change notification settings - Fork 298
Description
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
- 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 commentedon May 12, 2025
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 commentedon May 17, 2025
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 commentedon May 17, 2025
is there a workaround I could use until this is fixed?
Android mode with Processing version 4.3 should work ok.
SableRaf commentedon May 17, 2025
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 commentedon May 17, 2025
Thank you everyone!
glvjr commentedon Jul 29, 2025
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:
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 commentedon Aug 1, 2025
Hi @glvjr, AFAIK the
.msi
installer on Windows does the following:PATH
(used by the CLI)You can see the full instructions in Processing.wxs