4

내 Unity 프로젝트에 Firebase Analytics를 가져 왔습니다. Android SDK 관리자에서 몇 가지 패키지 중 Google Play 서비스를 업데이트했습니다.종속성 com.google.android.gms을 찾을 수 없습니다. play-services-ads-lite : [10.2.4]

1)

Unable to find dependency com.google.android.gms:play-services-ads-lite:[10.2.4] in paths ($SDK\extras\android\m2repository, $SDK\extras\google\m2repository, $SDK\extras\android\m2repository, $SDK\extras\google\m2repository). 

com.google.android.gms:play-services-ads-lite:[10.2.4] was referenced by: 
    at System.Environment.get_StackTrace() in /Users/builduser/buildslave/mono/build/mcs/class/corlib/System/Environment.cs:line 227 
    at Google.JarResolver.Dependency..ctor(System.String group, System.String artifact, System.String version, System.String[] packageIds, System.String[] repositories) 
    at Google.JarResolver.PlayServicesSupport.GetDependencies(Google.JarResolver.Dependency dep, System.Collections.Generic.List`1 repoPaths) 
    at Google.JarResolver.PlayServicesSupport.GetTransitiveDependencies(System.Collections.Generic.Dictionary`2 dependencies, System.Collections.Generic.List`1 repoPaths) 
    at Google.JarResolver.PlayServicesSupport.FindMissingDependencyPaths(System.String destinationDirectory, System.Collections.Generic.Dictionary`2 ByRef dependencyPaths, Google.JarResolver.ExplodeAar explodeAar) 
    at GooglePlayServices.ResolverVer1_1.DoResolution(Google.JarResolver.PlayServicesSupport svcSupport, System.String destinationDirectory, Google.JarResolver.OverwriteConfirmation handleOverwriteConfirmation, System.Action resolutionComplete) 
    at GooglePlayServices.PlayServicesResolver.Resolve(System.Action resolutionComplete) 
    at GooglePlayServices.PlayServicesResolver.AutoResolve() 
    at UnityEditor.EditorApplication.Internal_CallUpdateFunctions() in C:\buildslave\unity\build\artifacts\generated\common\editor\EditorApplicationBindings.gen.cs:line 197 

UnityEngine.Debug:LogError(Object) 
GooglePlayServices.PlayServicesResolver:<PlayServicesResolver>m__0(String, LogLevel) 
Google.JarResolver.PlayServicesSupport:Log(String, LogLevel, Boolean) 
Google.JarResolver.PlayServicesSupport:FindCandidate(Dependency, List`1) 
Google.JarResolver.PlayServicesSupport:GetDependencies(Dependency, List`1) 
Google.JarResolver.PlayServicesSupport:GetTransitiveDependencies(Dictionary`2, List`1) 
Google.JarResolver.PlayServicesSupport:FindMissingDependencyPaths(String, Dictionary`2&, ExplodeAar) 
GooglePlayServices.ResolverVer1_1:DoResolution(PlayServicesSupport, String, OverwriteConfirmation, Action) 
GooglePlayServices.PlayServicesResolver:Resolve(Action) 
GooglePlayServices.PlayServicesResolver:AutoResolve() 
UnityEditor.EditorApplication:Internal_CallUpdateFunctions() 

2)

ResolutionException: Cannot find candidate artifact for com.google.android.gms:play-services-ads-lite:[10.2.4] 
Google.JarResolver.PlayServicesSupport.GetDependencies (Google.JarResolver.Dependency dep, System.Collections.Generic.List`1 repoPaths) 
Google.JarResolver.PlayServicesSupport.GetTransitiveDependencies (System.Collections.Generic.Dictionary`2 dependencies, System.Collections.Generic.List`1 repoPaths) 
Google.JarResolver.PlayServicesSupport.FindMissingDependencyPaths (System.String destinationDirectory, System.Collections.Generic.Dictionary`2& dependencyPaths, Google.JarResolver.ExplodeAar explodeAar) 
GooglePlayServices.ResolverVer1_1.DoResolution (Google.JarResolver.PlayServicesSupport svcSupport, System.String destinationDirectory, Google.JarResolver.OverwriteConfirmation handleOverwriteConfirmation, System.Action resolutionComplete) 
GooglePlayServices.PlayServicesResolver.Resolve (System.Action resolutionComplete) 
GooglePlayServices.PlayServicesResolver.AutoResolve() 
UnityEditor.EditorApplication.Internal_CallUpdateFunctions() (at C:/buildslave/unity/build/artifacts/generated/common/editor/EditorApplicationBindings.gen.cs:197) 

내가 자산> 플레이 서비스에 갔을 때 나는 같은 오류를 가지고 : 내 유니티 프로젝트를 컴파일했을 때, 나는 다음과 같은 오류가있어 Resolver> Android Resolver> Client Jars 해결하기.

오류를 제거하려면 어떻게해야합니까?

+0

https://developers.google.com/android/guides../setup com.google.android.gms : play-services-ads-lite는 표에 없습니다. com.google.android.gms : play-services-ads : 10.2.4? – Raghunandan

답변

0

나는 Google 모바일 광고 단결 패키지를 업데이트하여이 문제를 해결 한

+0

Google 모바일 광고 통합 패키지를 업데이트하는 단계를 알려주십시오. –

+0

https://github.com/googleads/googleads-mobile-unity/releases에서 GoogleMobileAds.unity 패키지를 다운로드하십시오. 그런 다음 Unity에서 패키지를 가져옵니다. –

0

나는 그것을 해결했다고 생각한다.

프로젝트 Assets/GooglePlayGames/PluginVersion.cs, 내부 파일로 이동하면 PlayServicesVersionConstraint가 "10.2.1"(기본값은 "10+")으로 변경됩니다.

저장하고 단일체로 이동하십시오.

메뉴에서 애셋> 플레이 서비스 리졸버> Android 리졸버> 클라이언트 확인 Jar로 이동하십시오. 프로그램이 버전 변경에 대해 묻는다면 확인을 누르십시오. 그리고 앱이 제대로 작동해야합니다.

추신 : 죄송합니다 내 영어, :(너무 나쁜

+0

을 찾을 수 없습니다. 해당 경로 및 해당 파일! –

+0

'com.google.firebase : firebase-ads : 10.2.4'을 컴파일하고이 종속성을 –

+0

으로 사용하고 apply plugin을 추가하십시오. 'com.google.gms.google-services' –