I'm trying to integrate protocol buffer in android project and followed few
steps to include gradle plugin and added following dependencies
dependencies {
implementation 'com.google.protobuf:protobuf-lite:3.0.0'
implementation 'com.google.protobuf:protobuf-java:3.10.0'
}
But in the generated java file, I have methods
public static LoginRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
where the highlighted line is showing error cannot resolve method. The
whole file is generated from .proto file and i'm not sure why i'm getting
this error even after including necessary plugins.
Kindly help.
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/protobuf/6826be3e-47c9-44f5-92d7-73857ef8b251n%40googlegroups.com.