processing-android icon indicating copy to clipboard operation
processing-android copied to clipboard

Crash on compiling in Android mode

Open ghost opened this issue 9 years ago • 10 comments

I create a standard void setup(){} void draw(){}, and it crashes on compiling. So It never runs. here is the console:

-build-setup: Using latest Build Tools: 25.0.1 [echo] Resolving Build Target for sketch_161124b... Project Target: Android 5.1.1 API level: 22 [echo] ---------- [echo] Creating output directories if needed... [mkdir] Created dir: C:\Users\Luciano\AppData\Local\Temp\android7430196981697954096sketch\bin\res [mkdir] Created dir: C:\Users\Luciano\AppData\Local\Temp\android7430196981697954096sketch\bin\rsObj [mkdir] Created dir: C:\Users\Luciano\AppData\Local\Temp\android7430196981697954096sketch\bin\rsLibs [mkdir] Created dir: C:\Users\Luciano\AppData\Local\Temp\android7430196981697954096sketch\gen [mkdir] Created dir: C:\Users\Luciano\AppData\Local\Temp\android7430196981697954096sketch\bin\classes [mkdir] Created dir: C:\Users\Luciano\AppData\Local\Temp\android7430196981697954096sketch\bin\dexedLibs [echo] ---------- [echo] Resolving Dependencies for sketch_161124b... Library dependencies: No Libraries


 [echo] ----------
 [echo] Building Libraries with 'debug'...

[subant] No sub-builds to iterate on

-code-gen: Merging AndroidManifest files into one. Manifest merger disabled. Using project manifest only. [echo] Handling aidl files... No AIDL files to compile. [echo] ---------- [echo] Handling RenderScript files... [echo] ---------- [echo] Handling Resources... Generating resource IDs... [echo] ---------- [echo] Handling BuildConfig class... Generating BuildConfig class.

-pre-compile:

-compile: [javac] Compiling 4 source files to C:\Users\Luciano\AppData\Local\Temp\android7430196981697954096sketch\bin\classes

  1. WARNING in C:\Users\Luciano\AppData\Local\Temp\android7430196981697954096sketch\src\processing\test\sketch_161124b\MainActivity.java (at line 49) int check; ^^^^^ The value of the local variable check is not used

  1. ERROR in C:\Users\Luciano\AppData\Local\Temp\android7430196981697954096sketch\src\processing\test\sketch_161124b\MainActivity.java (at line 58) public void onRequestPermissionsResult(int requestCode, String permissions[], int[] grantResults) { ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ The method onRequestPermissionsResult(int, String[], int[]) of type MainActivity must override a superclass method


  1. WARNING in C:\Users\Luciano\AppData\Local\Temp\android7430196981697954096sketch\src\processing\test\sketch_161124b\sketch_161124b.java (at line 4) import processing.data.*; ^^^^^^^^^^^^^^^ The import processing.data is never used

  1. WARNING in C:\Users\Luciano\AppData\Local\Temp\android7430196981697954096sketch\src\processing\test\sketch_161124b\sketch_161124b.java (at line 5) import processing.event.*; ^^^^^^^^^^^^^^^^ The import processing.event is never used

  1. WARNING in C:\Users\Luciano\AppData\Local\Temp\android7430196981697954096sketch\src\processing\test\sketch_161124b\sketch_161124b.java (at line 6) import processing.opengl.*; ^^^^^^^^^^^^^^^^^ The import processing.opengl is never used

  1. WARNING in C:\Users\Luciano\AppData\Local\Temp\android7430196981697954096sketch\src\processing\test\sketch_161124b\sketch_161124b.java (at line 8) import java.util.HashMap; ^^^^^^^^^^^^^^^^^ The import java.util.HashMap is never used

  1. WARNING in C:\Users\Luciano\AppData\Local\Temp\android7430196981697954096sketch\src\processing\test\sketch_161124b\sketch_161124b.java (at line 9) import java.util.ArrayList; ^^^^^^^^^^^^^^^^^^^ The import java.util.ArrayList is never used

  1. WARNING in C:\Users\Luciano\AppData\Local\Temp\android7430196981697954096sketch\src\processing\test\sketch_161124b\sketch_161124b.java (at line 10) import java.io.File; ^^^^^^^^^^^^ The import java.io.File is never used

  1. WARNING in C:\Users\Luciano\AppData\Local\Temp\android7430196981697954096sketch\src\processing\test\sketch_161124b\sketch_161124b.java (at line 11) import java.io.BufferedReader; ^^^^^^^^^^^^^^^^^^^^^^ The import java.io.BufferedReader is never used

  1. WARNING in C:\Users\Luciano\AppData\Local\Temp\android7430196981697954096sketch\src\processing\test\sketch_161124b\sketch_161124b.java (at line 12) import java.io.PrintWriter; ^^^^^^^^^^^^^^^^^^^ The import java.io.PrintWriter is never used

  1. WARNING in C:\Users\Luciano\AppData\Local\Temp\android7430196981697954096sketch\src\processing\test\sketch_161124b\sketch_161124b.java (at line 13) import java.io.InputStream; ^^^^^^^^^^^^^^^^^^^ The import java.io.InputStream is never used

  1. WARNING in C:\Users\Luciano\AppData\Local\Temp\android7430196981697954096sketch\src\processing\test\sketch_161124b\sketch_161124b.java (at line 14) import java.io.OutputStream; ^^^^^^^^^^^^^^^^^^^^ The import java.io.OutputStream is never used

  1. WARNING in C:\Users\Luciano\AppData\Local\Temp\android7430196981697954096sketch\src\processing\test\sketch_161124b\sketch_161124b.java (at line 15) import java.io.IOException; ^^^^^^^^^^^^^^^^^^^ The import java.io.IOException is never used

13 problems (1 error, 12 warnings)

BUILD FAILED C:\Users\Luciano\AppData\Local\Temp\android7430196981697954096sketch\build.xml:15: The following error occurred while executing this line: C:\Users\Luciano\AppData\Local\Temp\android7430196981697954096sketch\build.xml:28: Compile failed; see the compiler error output for details.

Total time: 2 seconds

ghost avatar Nov 24 '16 15:11 ghost

what version of the mode are you using?

codeanticode avatar Dec 20 '16 05:12 codeanticode

1.5.1 bit I tried with 1.4.4 as well and same error.

ghost avatar Dec 20 '16 13:12 ghost

Do you mean you are using Processing 1.5.1? The latest versions of the mode are compatible with processing 3 and newer.

codeanticode avatar Dec 20 '16 16:12 codeanticode

Sorry the versions said were for Android. O was using the latest on Processing

ghost avatar Dec 20 '16 17:12 ghost

ok, will test them then. Thanks for the feedback. From the error messages you posted, looks like you are on Windows right? What version (10, 7, etc)?

codeanticode avatar Dec 21 '16 19:12 codeanticode

Windows 10

ghost avatar Dec 21 '16 19:12 ghost

O tried ir on a diferent computer and same error. (Same OS, same Processing version)

ghost avatar Dec 21 '16 19:12 ghost

I have the exact same problem (Win10, Processing 3.2.3, Android mode 3.0.1)

polimon-git avatar Dec 21 '16 20:12 polimon-git

@XikoCar @CryMattia99 Can you check if this crash still happens with the latest release candidate? It has a completely new build system, so this may have addressed this issue. Thanks a lot!

codeanticode avatar Aug 08 '17 16:08 codeanticode

@codeanticode It finally works! Programming on android with Processing is so much fun! :D

polimon-git avatar Aug 08 '17 18:08 polimon-git