Problem with running a simple sketch on Android

For whatever it’s worth, adding net.jar to the ‘code’ folder of the android test that you asked us to run now does so without error with import processing.net.*; as the first line.

Runs without error:

import processing.net.*;

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
    }
  }
}

If net.jar is added to code folder:
jar

1 Like