安卓Play.Connect失败

请打开日志看一下异常信息。
一般 android 平台要注意「是否打开了网络权限」,「是否有 http 请求(android 高版本默认只允许 https 请求)」

网络权限已经打开了,使用安卓调试出现以下报错:
Unity : DescriptorValidationException: game_protobuf_messages.proto.messages.RoomNotification.notification: Method ClearNotification not found in LeanCloud.Play.Protocol.RoomNotification

Unity : at Google.Protobuf.Reflection.OneofDescriptor.CreateAccessor (System.String clrName) [0x00087] in :0

Unity : at Google.Protobuf.Reflection.OneofDescriptor..ctor (Google.Protobuf.Reflection.OneofDescriptorProto proto, Google.Protobuf.Reflection.FileDescriptor file, Google.Protobuf.Reflection.MessageDescriptor parent, System.Int32 index, System.String clrName) [0x00030] in :0

Unity : at Google.Protobuf.Reflection.MessageDescriptor+<>c__DisplayClass4_0.<.ctor>b__0 (Google.Protobuf.Reflection.OneofDescriptorProto oneof, System.Int32 index) [0x00020] in :0

Unity : at Google.Protobuf.Reflection.DescriptorUtil.ConvertAndMakeReadOnly[TInput,TOutput] (System.Collections.Generic.IList1[T] input, Google.Protobuf.Reflection.DescriptorUtil+IndexedConverter

从日志上看应该是:协议代码打包时被 strip 掉了
我在 Play-Quick-Start-CSharp 测试了一下 android 打包是正常的,您可以下载并参考一下配置。

我又查阅了一些资料,这个问题应该是 IL2Cpp 编译过程中,将没有直接用到的类型(例如 Protobuf 协议)strip 掉了。
所以需要静态指定一下「要保留的 Assembly」link.xml,我已经在 Play-Quick-Start-CSharp 中更新。
参考资料
后面我会在发布 SDK 时直接加入这个配置文件。

已经可以了。IOS系统上还没测试,不知道有没类似的问题,之后可能还需要麻烦你,十分感谢!!!