我正在尝试在我的项目中集成OneSignal 2.4.1 Unity SDK,该项目已经实现了针对Unity的Google Play游戏服务(版本0.9.42)

仅使用Google Play游戏插件,我通常可以登录我的Android游戏中的服务 . 当我整合OneSignal时,我的应用程序在我尝试登录时崩溃了 .

请记住,当我导入OneSignal SDK时,我在Unity控制台中收到以下警告消息:

发现冲突的Android库gpgs-plugin-support资产/插件/ Android / gpgs-plugin-support-0.9.42(由Android解析器管理)与:Assets / GooglePlayGames / Editor / m2repository / com / google / games / gpgs冲突-plugin-support / 0.9.42 / gpgs-plugin-support-0.9.42.aar您的应用程序不太可能在当前状态下构建 . 要解决此问题,您可以尝试以下操作之一:更新Android解析程序管理的依赖项以删除对旧库的引用 . 请注意不要包含有冲突的Google Play服务版本 . 联系具有冲突依赖关系的插件供应商并要求他们更新他们的插件 . UnityEngine.Debug:LogWarning(Object)Google.Logger:Log(String,LogLevel)GooglePlayServices.PlayServicesResolver:Log(String,LogLevel)GooglePlayServices.ResolverVer1_1:FindAndResolveConflicts()GooglePlayServices.c__AnonStorey17:<> m__29()GooglePlayServices.c__AnonStorey18:<> m__26(List`1)GooglePlayServices.c__AnonStorey14:<> m__1F(Result)GooglePlayServices.c__AnonStorey15:<> m__28()GooglePlayServices.PlayServicesResolver:PumpUpdateQueue()UnityEditor.EditorApplication:Internal_CallUpdateFunctions()

我使用了Android Resolver('Resolve'和'Force Resolve'选项),但当我尝试登录谷歌播放服务时,我的应用程序仍然崩溃 .

关于如何解决上述问题的任何想法?

谢谢