我假设这是因为我的javalite库和protobuf java库之间发生了冲突。(Protobuf.java:107)
at com.google.protobuf.GeneratedMessageLite.makeImmutable(GeneratedMessageLite.java(com.google.android.datatransport:transport-backend-cct@@2
我正在做一个android项目,在这个项目中,我们使用Google的Protobuf库进行序列化/反序列化。过去,我曾与C++合作开发过Protobuf。: class Login : public ::google::protobuf::Message { ... }
然而,如果我尝试在Android中生成相同的代码,则这些类是从公共静态最终类Login扩展com.google.protobuf.
/protobuf/GeneratedMessageLite;)V in class Lcom/google/protobuf/GeneratedMessageLite; or its super classes(declaration of 'com.google.protobuf.GeneratedMessageLite' appears in /data/a
当尝试使用Firestore和Google Speech to Text库构建项目时,我得到了一个"Duplicate class“错误。据我所知,这是由于两个库都引入了proto库。(Protobuf.java:107)
at com.google.protobuf.GeneratedMessageLite.makeImmutable(GeneratedMessageLite.java(Genera