Skip to content

Java: new SDK message handling not supported by some older Android devices #519

Description

@mathieu1fb

Each messageHelper class is using toString(...) on a ByteArrayOutputStream, but this was added in Java 11 and is not supported by some devices running Android 11 and lower:

FATAL EXCEPTION: main Process: 
com.orange.orangemobility, PID: 11521 java.lang.NoSuchMethodError: No virtual method toString(Ljava/nio/charset/Charset;)Ljava/lang/String; in class Ljava/io/ByteArrayOutputStream; or its super classes (declaration of 'java.io.ByteArrayOutputStream' appears in /apex/com.android.art/javalib/core-oj.jar)
at com.orange.iot3mobility.messages.cam.CamHelper.writeToString(CamHelper.java:129)

Metadata

Metadata

Assignees

Labels

Type

Fields

No fields configured for Bug.

Projects

Status
Backlog

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions