【问题标题】:Unity, dependency error importing google play game servicesUnity,导入google play游戏服务时出现依赖错误
【发布时间】:2016-02-12 16:15:46
【问题描述】:

我按照此处所述更新 google google play 游戏服务:unity plugin,但出现以下错误:

Google.JarResolver.ResolutionException:找不到 com.google.android.gms:play-services-games:8.4+ 的候选工件 在 Google.JarResolver.PlayServicesSupport.DependOn(System.String 组,System.String 工件,System.String 版本)[0x00000] in :0 在 GooglePlayGames.Editor.GPGSDependencies..cctor () [0x00024] 在 /Users/gabriele/Documents/number777pro/number/Number777/Assets/GooglePlayGames/Editor/GPGSDependencies.cs:46 UnityEditor.EditorAssemblies:SetLoadedEditorAssemblies(Assembly[])

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

【问题讨论】:

  • 您需要通过 Android SDK Manager 更新 Google Repository 和 Android Support Repository 组件。
  • 我做到了,我也尝试重新下载android sdk,但它没有解决错误
  • 嗨@GabrielePicco,你真的应该在下面打勾!

标签: unity3d google-play-services google-play-games


【解决方案1】:

通过在 android sdk manager 中更新以下内容已解决: 1.android支持库 2. 谷歌播放服务 3. 谷歌仓库


仅供参考在 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 应用程序)。然后,您可以这样做,如果您确切知道要安装什么以使 Play Services 正常工作,也许可以节省一些下载。请注意,幸运的是,SDKManager 可以以这种方式自行运行(Mac 上没有 frickin' java),而无需启动 Studio。

希望它对某人有所帮助。

【讨论】:

    猜你喜欢
    • 2017-10-18
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-06-13
    • 2014-03-13
    • 1970-01-01
    • 1970-01-01
    • 2014-10-31
    相关资源
    最近更新 更多