Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有人试过吗?我需要为 protobuf 2.5.0 生成 scala 类似乎 ScalaPB 支持 protobuf 3.x 而不是 2.5.0
所以... Nadav Samet 在 google 群组中回答了我。不可能。引用他的回答:
问题是不同版本的 protobuf-java 不是二进制兼容的。因此,如果它适用于 2.5.0,它将不适用于 3.4.0。如果您需要 protobuf 2.5.x 支持的原因是因为该版本上还有其他一些库,请考虑要求他们继续前进,或者使用 protobuf-java 的阴影版本,这样版本就不会冲突。