Hi,
I try to print my protocol-buffer message as a Json, but I get allways an exception
java.lang.NoSuchMethodError: com.google.protobuf.Any.getDescriptor()Lcom/google/protobuf/Descriptors$Descriptor;
at com.google.protobuf.util.JsonFormat$PrinterImpl.buildWellKnownTypePrinters(JsonFormat.java:783)
at com.google.protobuf.util.JsonFormat$PrinterImpl.<clinit>(JsonFormat.java:777)
at com.google.protobuf.util.JsonFormat$Printer.appendTo(JsonFormat.java:362)
at com.google.protobuf.util.JsonFormat$Printer.print(JsonFormat.java:382)
...
My protocol-buffer message classes are generated by protoc version 3.13.0.
My protocol-buffer message classes are compiled with protobuf-java 3.13.0 and I use protobuf-util 3.13.0
My code:
Message msg = ConcreteMessage.newBuilder().build();
JsonFormat.printer().print(msg);
What is going wrong?
Thanks.