Skip to content

ProtobufRuntimeVersionException: Runtime version cannot be older than the linked gencode version #435

@snazhmudinov

Description

@snazhmudinov

I was trying the rules_android with our setup, and when I tried building one of our android_binary targets, i i got this error:

Caused by: com.google.protobuf.RuntimeVersion$ProtobufRuntimeVersionException:
  Detected incompatible Protobuf Gencode/Runtime versions when loading
  com.google.devtools.build.android.proto.SerializeFormat$Header:
  gencode 4.32.1, runtime 4.31.1.
  Runtime version cannot be older than the linked gencode version.

I was able to "resolve" it by upgrading the following deps to 4.32.1:

com.google.protobuf:protobuf-java:4.31.1
com.google.protobuf:protobuf-java-util:4.31.1

Metadata

Metadata

Assignees

No one assigned

    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