Google Protobuf VerifyError

79 views
Skip to first unread message

Sneh Tekriwal

unread,
Mar 22, 2021, 4:50:02 PM3/22/21
to Protocol Buffers

I am using Google Protobuf version 2.6.1 and wanted to use the option

option optimize_for = LITE_RUNTIME;

I am getting the following exception as soon as I do so.

Exception in thread "main" java.lang.VerifyError: class com.pbo.common.network.message.NetworkProtocol$NetworkMessage$HpSyncMessage overrides final method com.google.protobuf.GeneratedMessageLite.isInitialized()Z

As soon as I remove the lite runtime option, the error goes away. Not sure what's causing this. I tried cleaning gradle caches etc to see if that helps but to no avail.

Reply all
Reply to author
Forward
0 new messages