I’ve always used Processing 3 in Java mode, and I wanted to test out the Android mode. So, to make sure I really wouldn’t do anything wrong when installing everything required as to be able to use Android mode with an emulator, I had the Processing IDE configure everything as automatically as possible: I installed the mode through the IDE, when prompted for the Android SDK I let Processing install it automatically, and for the emulator, I let Processing do its thing with the default phone image and Intel HAXM and all the jazz.
Now, when I try to run a simple program like:
void setup() {
fullScreen();
noStroke();
fill(0);
}
void draw() {
background(204);
if (mousePressed) {
if (mouseX < width/2) {
rect(0, 0, width/2, height); // Left
} else {
rect(width/2, 0, width/2, height); // Right
}
}
}
and I try to run the emulator using Sketch -> Run in Emulator, the IDE takes more than a minute displaying lines starting with :app:, eventually notifies me by saying “Lost connection with emulator while launching. Try again.”, with in the console the paragraph:
BUILD SUCCESSFUL in 1m 2s
28 actionable tasks: 28 executed
Emulator process exited with status 1.
EmulatorController: Emulator never booted. NOT_RUNNING
Error while starting the emulator. (NOT_RUNNING)
Shutting down any existing adb server... Done.
So … I have no idea how to solve this, since I let Processing do all the work itself. Any ideas?
Look, that’s not an answer to my question. These forums are also made as future reference; right now, if anyone runs into the same problem I’m running into, they will stumble upon this thread and be disappointed to see that there is no solution given to their problem, yet they’ll have to read through needless responses (it is very irrelevant that you have 10 phones, for example; if I don’t have a single one, then that’s the situation at hand).
If you don’t have an actual solution to the problem, then don’t reply. If you do, I’m sure the community would appreciate you sharing it.
have you tried running the emulator from the command line to see if that is working correctly, I was getting the same message and it was because I’d not installed the "Intel x86 Emulator Accelerator ".
I went to the emulator folder of the sdk (in my case in \processing\android\sdk\emulator) and ran:
Hello Richard! I tried out the solution you listed and instead got back a slightly different error.
EmulatorController: Emulator is not available.
Error while starting the emulator. (NOT_RUNNING)
According to the limited research I’ve conducted myself, this is due to processing not recognizing that the software is loaded/ready to be used. I’ve waited until it has completely loaded but to no avail. I’m still not sure as to why this is happening. I’ll keep you posted if I find another solution.