Googleads-mobile-unity: Google.JarResolver Cannot find artifact from.. error

Created on 1 May 2017  路  9Comments  路  Source: googleads/googleads-mobile-unity

Hi guys,

I have the following error message:

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.List1 repoPaths)
Google.JarResolver.PlayServicesSupport.GetTransitiveDependencies (System.Collections.Generic.Dictionary2 dependencies, System.Collections.Generic.List1 repoPaths)
Google.JarResolver.PlayServicesSupport.FindMissingDependencyPaths (System.String destinationDirectory, System.Collections.Generic.Dictionary2& 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.MenuResolve ()

I've searched in several websites, but I don麓t seem to find the answer.
The following SDK Extras are already updated:

  • Android Support Repository
  • Google Play Services
  • Google Repository
support question

Most helpful comment

I had the same issue and I think it's solved now.

Open AdMobDependencies.cs file, located inside of Assets -> GoogleMobileAds -> Editor, with your text editor and find the line in SetupDeps() method:

Google.VersionHandler.InvokeInstanceMethod(svcSupport, "DependOn", new object[] { "com.google.android.gms", "play-services-ads", "LATEST" },

Now change the string "LATEST" to "10.2.1". That worked for me, hope it helps someone.

All 9 comments

Any suggestions on how to fix this? Spent WAY too long searching for answers.

same issue .
Even sdk is totally updated.

same error, someone how to fix ?

Importing the latest version (v1.2.19) of JarResolver should resolve this issue. You may have to perform version resolution by selecting Assets -> Play Services Resovler -> Version Handler -> Update after importing the updated JarResolver library.

page not found

you mean this

@JillionStudio looks like the version was bumped since I made my post. The link you provided is correct. Updated my earlier post to reflect this.

I had the same issue and I think it's solved now.

Open AdMobDependencies.cs file, located inside of Assets -> GoogleMobileAds -> Editor, with your text editor and find the line in SetupDeps() method:

Google.VersionHandler.InvokeInstanceMethod(svcSupport, "DependOn", new object[] { "com.google.android.gms", "play-services-ads", "LATEST" },

Now change the string "LATEST" to "10.2.1". That worked for me, hope it helps someone.

The latest version of this plugin (v3.5.0) pulls in the latest version of the JarResovler library, which includes a fix for this issue. @guilhermeouriques once you update to v3.5.0, you'll no longer have to use older versions of Google Play services dependencies.

Was this page helpful?
0 / 5 - 0 ratings