我目前在 Unity3D 中遇到奇怪的错误或错误。尽管只使用原始的谷歌插件,我得到以下错误尝试解决Android依赖项。这是错误日志:
Resolution failed
Failed to fetch the following dependencies:
com.google.android.gms:play-services-ads-identifier:15.0.2
com.google.android.gms:play-services-ads-license:15.0.2
com.google.android.gms:play-services-ads-lite-license:15.0.2
com.google.android.gms:play-services-ads-lite:15.0.2
com.google.android.gms:play-services-ads:15.0.2
com.google.android.gms:play-services-auth-api-phone-license:15.0.2
com.google.android.gms:play-services-auth-api-phone:15.0.2
com.google.android.gms:play-services-auth-base-license:15.0.2
com.google.android.gms:play-services-auth-base:15.0.2
com.google.android.gms:play-services-auth:15.0.2
com.google.android.gms:play-services-base:15.0.2
com.google.android.gms:play-services-basement:15.0.2
com.google.android.gms:play-services-drive-license:15.0.2
com.google.android.gms:play-services-drive:15.0.2
com.google.android.gms:play-services-games-license:15.0.2
com.google.android.gms:play-services-games:15.0.2
com.google.android.gms:play-services-gass-license:15.0.2
com.google.android.gms:play-services-gass:15.0.2
com.google.android.gms:play-services-nearby-license:15.0.2
com.google.android.gms:play-services-nearby:15.0.2
com.google.android.gms:play-services-stats:15.0.2
com.google.android.gms:play-services-tasks:15.0.2
com.google.firebase:firebase-analytics-impl-license:15.0.2
com.google.firebase:firebase-analytics-license:15.0.2
com.google.firebase:firebase-common-license:15.0.2
com.google.firebase:firebase-common:15.0.2
com.google.firebase:firebase-iid-license:15.0.2
com.google.firebase:firebase-messaging-license:15.0.2
UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object)
UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
UnityEngine.Logger:Log(LogType, Object)
UnityEngine.Debug:Log(Object)
Google.Logger:Log(String, LogLevel)
GooglePlayServices.PlayServicesResolver:Log(String, LogLevel)
GooglePlayServices.<ResolveUnsafe>c__AnonStorey2:<>m__1()
GooglePlayServices.PlayServicesResolver:PumpUpdateQueue()
UnityEditor.EditorApplication:Internal_CallUpdateFunctions() (at C:\buildslave\unity\build\Editor\Mono\EditorApplication.cs:183)
(Filename: C:/buildslave/unity/build/Editor/Mono/EditorApplication.cs Line: 183)
以下是我的插件列表:
根据日志,15.0.2无法找到,但我目前在Android Studio中使用v15.0.2库。提前谢谢!
答案 0 :(得分:0)
为了明确起见,我以这种方式修复它:
Assets/Plugins/Android
中的内容并删除 entire文件夹(备份用于删除与Android Resolver无关的某些文件)Assets > External Dependency Manager > Android Resolver > Resolve
或Assets > Play Services Resolver > Android Resolver > Resolve
)现在解决应该成功了。