Execution of build is in an endless loop

I’m building a sketch for a Samsung Tab A. Everything seems to be connected and going OK, but the build has completed about 50 tasks and is stuck on the last one shown here. What to do? (Processing under Win10)

Task :app:transformDexArchiveWithExternalLibsDexMergerForDebug
Task :app:transformDexArchiveWithDexMergerForDebug
Task :app:mergeDebugJniLibFolders
Task :app:transformNativeLibsWithMergeJniLibsForDebug

Download the app APDE on Play Store and test your sketch in app mode, to see if there is any error.

Noel, I’ll do that.

In the mean time I closed processing, but it didn’t kill the lock file. I couldn’t kill Java SE binary, so I shut down and restarted. This time Processing built the sketch and it now resides in the Tab A, but there is an animation error. The error messages are:

FATAL EXCEPTION: Animation Thread
Process: processing.test.hvac_display, PID: 28113
java.lang.ArrayIndexOutOfBoundsException: src.length=2 srcPos=0 dst.length=37 dstPos=0 length=37
at java.lang.System.arraycopy(Native Method)
at processing.core.PGraphics.vertex(PGraphics.java:1427)
at processing.core.PShape.drawGeometry(PShape.java:1721)
at processing.core.PShape.drawImpl(PShape.java:1615)
at processing.core.PShape.draw(PShape.java:1598)
at processing.core.PGraphics.shape(PGraphics.java:3095)
at processing.core.PApplet.shape(PApplet.java:9668)
at processing.test.hvac_display.HVAC_display.draw(HVAC_display.java:435)
at processing.core.PApplet.handleDraw(PApplet.java:1852)
at processing.core.PSurfaceNone.callDraw(PSurfaceNone.java:476)
at processing.core.PSurfaceNone$AnimationThread.run(PSurfaceNone.java:516)
FATAL EXCEPTION: Animation Thread
Process: processing.test.hvac_display, PID: 28356
java.lang.ArrayIndexOutOfBoundsException: src.length=2 srcPos=0 dst.length=37 dstPos=0 length=37
at java.lang.System.arraycopy(Native Method)
at processing.core.PGraphics.vertex(PGraphics.java:1427)
at processing.core.PShape.drawGeometry(PShape.java:1721)
at processing.core.PShape.drawImpl(PShape.java:1615)
at processing.core.PShape.draw(PShape.java:1598)
at processing.core.PGraphics.shape(PGraphics.java:3095)
at processing.core.PApplet.shape(PApplet.java:9668)
at processing.test.hvac_display.HVAC_display.draw(HVAC_display.java:435)
at processing.core.PApplet.handleDraw(PApplet.java:1852)
at processing.core.PSurfaceNone.callDraw(PSurfaceNone.java:476)
at processing.core.PSurfaceNone$AnimationThread.run(PSurfaceNone.java:516)

I have no clue what to do with these, but I’ll start with the ADPE app.

ArrayIndexOutOfBoundsException is clearly an array limit error in the code.