• Unity
  • Services
  • Made with Unity
  • Learn
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Forums
  • Answers
  • Feedback
  • Issue Tracker
  • Blog
  • Evangelists
  • User Groups

Navigation

  • Home
  • Unity
  • Industries
  • Made with Unity
  • Learn
  • Community
    • Forums
    • Answers
    • Feedback
    • Issue Tracker
    • Blog
    • Evangelists
    • User Groups
  • Get Unity
  • Asset Store

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
9
Question by Spainforce · May 02, 2017 at 01:32 PM · advertising

PROBLEM WITH ADS: PLAY SERVICES

i am trying to put ads in my video game but when i test it the console show me this 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.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)

how can i solve it, thanks

Comment
Add comment · Show 11
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image VOTRUBEC · May 02, 2017 at 01:44 PM 0
Share

I just ran into this problem myself! Exactly the same.

ResolutionException: Cannot find candidate artifact for com.google.android.gms:play-services-ads-lite:[10.2.4]

avatar image mouradrj · May 02, 2017 at 02:55 PM 0
Share

I have some your problem

avatar image JCarpi · May 02, 2017 at 03:03 PM 0
Share

Same problem.

The ads are shown (in my case Interstitials) but I have this error on the console. I don't know what it means.

I have verified that I have everything the plugin asks for downloaded from the SDK.

If somebody can help us I'd be very grateful.

avatar image mouradrj · May 02, 2017 at 03:04 PM 0
Share

I have some your problem

avatar image Jasinka · May 02, 2017 at 03:05 PM 0
Share

Same error here. Last unity version, 5.6.0f3. Admob and play-services unity latests versions...

Show more comments

7 Replies

· Add your reply
  • Sort: 
avatar image
16
Best Answer

Answer by Shibli · May 07, 2017 at 02:22 PM

  1. Download the latest play-services-resolver package from : https://github.com/googlesamples/unity-jar-resolver (it will be the file ending with .unitypackage)

  2. Backup your Unity project

  3. Remove the 'Play Services Resolver' folder from your unity project

  4. Import the package you downloaded

  5. Say yes to the prompts asking you to change the settings

  6. Clear your console of all messages

  7. Go through menu: Assets->Play Services Resolver -> Android Resolver -> Resolve Client Jars

There is an additional step someone mentioned in the comments:

Assets > Play Service Resolver > Version Handle > Update

Should be fixed

Comment
Add comment · Show 14 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Jasinka · May 08, 2017 at 11:40 AM 0
Share

Thank you very much. For me error gone!

avatar image Spainforce · May 08, 2017 at 01:26 PM 0
Share

thanks you so much it worked for me too!

avatar image JCarpi · May 08, 2017 at 01:39 PM 0
Share

Thanks!!! I've been looking for the solution for some days.

avatar image elmehdimst · May 08, 2017 at 05:05 PM 0
Share

It worked for me! Thank you so much

avatar image Vixxd · May 15, 2017 at 03:19 PM 1
Share

Never had more issues in my life than with these Play Services - anyway, here is the link to the root github repo of the solution as the link in OP is broken again: https://github.com/googlesamples/unity-jar-resolver

Thanks very much, this solved my problem!

Show more comments
avatar image
1

Answer by Boris3000 · May 08, 2017 at 01:33 PM

I found this: "Go to the file in your project Assets/GooglePlayGames/PluginVersion.cs, inside change the PlayServicesVersionConstraint to "10.2.1" (the default value is"10+")." And Unity say Resolution Complete!

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image vrfurl · May 18, 2017 at 12:18 AM 0
Share

This worked for me. Thanks!

avatar image BadgerScout · Jun 24, 2017 at 01:32 AM 0
Share

Caution, I did this and it did not solve the issue plus added more on.

avatar image
0

Answer by appmonkey36 · Jun 24, 2017 at 08:20 AM

This did the trick and hey > great example of someone giving us exact step by step instructions!

My ads are now appearing in the builds!!

TOP MARKS!

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by tachas · Aug 15, 2017 at 11:54 PM

Worked for me! Thanks

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by AhmedZia · Dec 08, 2017 at 06:44 PM

Thanks Budy issue resolved

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
  • 1
  • 2
  • ›

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.

Follow this Question

Answers Answers and Comments

27 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Can Unity support Video Ads through ad providers like Greystripe, Admob, etc? 1 Answer

Everyplay GameAds? 1 Answer

Account balance became zero 0 Answers

Game not showing other ads but only default unity ad 0 Answers

How to check if someone has download another app of yours? 2 Answers

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges