--
You received this message because you are subscribed to the Google Groups "Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to protobuf+u...@googlegroups.com.
To post to this group, send email to prot...@googlegroups.com.
Visit this group at https://groups.google.com/group/protobuf.
To view this discussion on the web visit https://groups.google.com/d/msgid/protobuf/77b7a87d-a81d-4f57-b105-84150a20e6a0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I would guess that you are still linking against the 2.6 version of libprotobuf, and you have to update the library so that its version matches the protoc version you used.
On Wed, Jun 19, 2019 at 10:57 PM Manisha Sinha <manishas...@gmail.com> wrote:
Hello Everyone,--one of my android application was previously using protobuf2.6 and things were working fine. but now the new AOSP contains protobuf3 beta version.i just generated the pb.cc and pb.h files using the aprotoc compiler without making any changes in my proto files. then linked it against libprotobuf-cpp-full.The build was fine but my application crashes when i tried calling MergePartialFromCodedStream() in order to decode the data.please let me know if anyone has any input on this.Do i need to make any more changes with respect to protobuf3 as the source code from previous AOSP is exactly the same.code snippet for decoding is as below:::google::protobuf::io::CodedInputStream input((const ::google::protobuf::uint8*)recvPackage.packageData, analyzedHead.packageDataSize);protocolVersionMatchStatus.MergePartialFromCodedStream(&input);Thanks,Manisha
You received this message because you are subscribed to the Google Groups "Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prot...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to protobuf+u...@googlegroups.com.
To post to this group, send email to prot...@googlegroups.com.
Visit this group at https://groups.google.com/group/protobuf.
To view this discussion on the web visit https://groups.google.com/d/msgid/protobuf/2be85e5f-c77d-40ed-ac59-af6846f03ab5%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/protobuf/CAOiE06hPdeJywUKQQf5iD6JRW0QSmeC9qmihLfPHdOF%2BAT9W5A%40mail.gmail.com.