Skip to content

Support building Android libs with Java 11 targetting Java 8 #625

Open
@codeanticode

Description

@codeanticode

Processing-core library build with Java 11 results in the following error when running sketches from the PDE:

java.lang.NoSuchMethodError: No virtual method rewind()Ljava/nio/ByteBuffer; in class Ljava/nio/ByteBuffer; or its super classes (declaration of 'java.nio.ByteBuffer' appears in /system/framework/core-oj.jar)

Apparently this is caused by the library being built against the wrong JRE (see this) although the top level gradle build file already sets source and target compatibility to 1.8.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions