Skip to content

protobuf-java 3.10.0 is not compatible with older Android versions #6718

@matejdro

Description

@matejdro

protobuf-java 3.10.0 uses some Java 8 features which makes it incompatible with Android builds where minSdk < O, even with desugaring enabled.

I realize that mobile clients are supposed to use protobuf lite, but some libraries (like Dialogflow client library) use protobuf-java internally, so we do not have a choice.

What did you do?
Steps to reproduce the behavior:

  1. Download and extract
    ProtobufTest.zip
  2. Run ./gradlew assembleDebug

What did you expect to see

I expected build to succeed, like with protobuf-java 3.9.2

What did you see instead?

Build crashes with MethodHandle.invoke and MethodHandle.invokeExact are only supported starting with Android O error.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions