Processing Build Error

edited July 2017 in Android Mode

Hi, I'm getting this error when i try to build Processing.

compile:
  [methods] No changes to PApplet API.
    [mkdir] Created dir: C:\Users\Carlos\Desktop\Pross\processing\core\bin
    [javac] Compiling 52 source files to C:\Users\Carlos\Desktop\Pross\processing\core\bin
    [javac] ----------
    [javac] 1. ERROR in C:\Users\Carlos\Desktop\Pross\processing\core\src\processing\javafx\PSurfaceFX.java (at line 249)
    [javac]     float renderScale = Screen.getMainScreen().getRenderScale();
    [javac]                                                ^^^^^^^^^^^^^^
    [javac] The method getRenderScale() is undefined for the type Screen
    [javac] ----------
    [javac] 2. ERROR in C:\Users\Carlos\Desktop\Pross\processing\core\src\processing\javafx\PSurfaceFX.java (at line 252)
    [javac]     renderScale = Math.max(renderScale, s.getRenderScale());
    [javac]                                           ^^^^^^^^^^^^^^
    [javac] The method getRenderScale() is undefined for the type Screen
    [javac] ----------
    [javac] 3. ERROR in C:\Users\Carlos\Desktop\Pross\processing\core\src\processing\javafx\PSurfaceFX.java (at line 255)
    [javac]     float uiScale = Screen.getMainScreen().getUIScale();
    [javac]                                            ^^^^^^^^^^
    [javac] The method getUIScale() is undefined for the type Screen
    [javac] ----------
    [javac] 3 problems (3 errors)

BUILD FAILED
C:\Users\Carlos\Desktop\Pross\processing\build\build.xml:307: The following error occurred while executing this line:
C:\Users\Carlos\Desktop\Pross\processing\build\build.xml:362: The following error occurred while executing this line:
C:\Users\Carlos\Desktop\Pross\processing\core\build.xml:57: Compile failed; see the compiler error output for details.

Answers

  • What's wrong with the pre-compiled versions?

  • Which SDK are you using?

  • I want to run Processing android mode on android studio so i was following the steps of how to build processing so that i can then build processing android. The sdk that i am using is java 8 and android 25.

Sign In or Register to comment.