【问题标题】:Unable to find dependency com.android.support support-v4 23.1找不到依赖项 com.android.support support-v4 23.1
【发布时间】:2016-10-24 13:14:56
【问题描述】:

我正在使用 unity 5.3.4f1。我需要使用 google play service repo:37。这个 google play 服务使用 android m2repository 和 google m2repository。我都从 SDK 管理器安装了,但仍然出现以下错误。

ERROR: Unable to find dependency com.android.support support-v4 23.1+ 
in     ($SDK\extras\android\m2repository, $SDK\extras\google\m2repository)
UnityEngine.Debug:Log(Object)
Google.JarResolver.PlayServicesSupport:Log(String, Boolean)
Google.JarResolver.PlayServicesSupport:FindCandidate(Dependency)
Google.JarResolver.PlayServicesSupport:LoadDependencies(Boolean, Boolean)
GooglePlayServices.ResolverVer1_1:DoResolution(PlayServicesSupport, String,     OverwriteConfirmation, Action)
GooglePlayServices.PlayServicesResolver:Resolve(Action)
GooglePlayServices.PlayServicesResolver:AutoResolve()
UnityEditor.EditorApplication:Internal_CallUpdateFunctions()

我该如何解决这个错误。

【问题讨论】:

    标签: android unity3d google-play-services


    【解决方案1】:

    确保为 appcompat-v7 依赖项使用正确的版本。你可以查看这个link

    上述依赖的最新稳定版本到现在 是:

        compile 'com.android.support:appcompat-v7:23.2.1'
    

    如上所述使用它并确保您已安装/更新到最新版本 SDK Manager 之前的版本。

    您还可以查看这些链接上的解决方法:

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-12-21
      • 1970-01-01
      • 1970-01-01
      • 2020-04-16
      • 2018-09-13
      • 2018-11-13
      • 1970-01-01
      相关资源
      最近更新 更多