可以使用 protobuf 2.5.0 运行 最近版本的 ScalaPB (0.6.x) 吗?
It is possible to run recent version of ScalaPB (0.6.x) with protobuf 2.5.0?
有人试过吗?我需要为 protobuf 2.5.0 生成 scala 类
似乎 ScalaPB 支持 protobuf 3.x 而不是 2.5.0
所以... Nadav Samet 在 google 组中回答了我。不可能。
引用他的回答:
The problem is that the different versions of protobuf-java are not
binary compatible. So if it would work with 2.5.0 it wouldn't work
with 3.4.0. If the reason you need protobuf 2.5.x support is because
there's some other library that is stuck on that version, consider
asking them to move forward, or use a shaded version of protobuf-java
so the versions won't conflict.
有人试过吗?我需要为 protobuf 2.5.0 生成 scala 类 似乎 ScalaPB 支持 protobuf 3.x 而不是 2.5.0
所以... Nadav Samet 在 google 组中回答了我。不可能。 引用他的回答:
The problem is that the different versions of protobuf-java are not binary compatible. So if it would work with 2.5.0 it wouldn't work with 3.4.0. If the reason you need protobuf 2.5.x support is because there's some other library that is stuck on that version, consider asking them to move forward, or use a shaded version of protobuf-java so the versions won't conflict.