Skip to content

NoClassDefFound com/google/protobuf/RuntimeVersion$RuntimeDomain #103

@harti2006

Description

@harti2006

The latest release v0.11.0, bumped the dependency on Protobuf from 3.25 to 4.27, which causes some compatibility issues in my project that uses the Authzed SDK.

Protobuf introduced some breaking changes in version 4.26.

My project still needs to work with Protobuf 3.25, because it has dependencies on other libraries, that have been compiled with this version of Protobuf. It turns out, that it is not possible to use two libraries, one compiled with Protobuf v3.25 and the other with v4.26 in the same project. Doing so results in runtime errors like:

NoClassDefFound com/google/protobuf/RuntimeVersion$RuntimeDomain

Protobuf version 4.28 tries to bring back compatibility with version 3.25, but I cannot yet confirm this

Binary compatibility shims for GeneratedMessageV3, SingleFieldBuilderV3, RepeatedFieldBuilderV3, and their nested classes to restore binary compatibility with <=v3.x.x generated code built against v3.x.x prior to v4.26.0 breaking release.

Could you please either revert the Protobuf upgrade back to 3.25? Alternatively, moving forward to 4.28 might also solve the issue, but I have to test that first.

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