Unity,导入依赖错误 google 玩游戏服务

Unity, dependency error importing google play game services

我更新 google google 玩游戏服务,如下所述:unity plugin,但出现以下错误:

Google.JarResolver.ResolutionException: Cannot find candidate artifact for com.google.android.gms:play-services-games:8.4+ at Google.JarResolver.PlayServicesSupport.DependOn (System.String group, System.String artifact, System.String version) [0x00000] in :0 at GooglePlayGames.Editor.GPGSDependencies..cctor () [0x00024] in /Users/gabriele/Documents/number777pro/number/Number777/Assets/GooglePlayGames/Editor/GPGSDependencies.cs:46 UnityEditor.EditorAssemblies:SetLoadedEditorAssemblies(Assembly[])

我试图找到解决方案,但没有成功,有人知道如何解决吗?

通过更新 android sdk 管理器中的以下内容解决了这个问题: 1. android 支持存储库 2. Google 播放服务 3. Google 存储库


仅供参考 在 Mac...

转到您的 Android 工具目录,它可能在此处..

cd /Users/ ... /Library/Android/android-sdk-macosx/tools

和运行这个

./android update sdk --no-ui

它将安装大量下载(30 分钟),包括看起来解决此问题所需的一切。

 ...
  Downloading Local Maven repository for Support Libraries, revision 28
  Installing Local Maven repository for Support Libraries, revision 28
    Installed Local Maven repository for Support Libraries, revision 2899%)
  Downloading Google Play services, revision 29
  Installing Google Play services, revision 29
    Installed Google Play services, revision 2996%)
  Downloading Google Repository, revision 25
  Installing Google Repository, revision 25
    Installed Google Repository, revision 2599%)
 ...
  Done. 34 packages installed.

如果您是 Unity-Mac 用户,您可能没有安装 Android Studio,而只安装了各种 SDK。通过这种方式,您可以轻松更新,而无需像这样使用 Studio。相反,如果你只是 运行

./android

它将打开非常方便的 AndroidSDKManager(即,您的 Mac 上的实际 gui 应用程序 运行ning)。如果您确切知道要安装什么才能让 Play 服务正常工作,您就可以那样做,也许可以节省一些下载。请注意,幸运的是,SDKManager 可以通过这种方式自行 运行( 在您的 Mac 上没有 frickin' java)而无需启动 Studio。

希望对大家有所帮助。