Problems with plugins
Hi, I'm really new, and I'm creating a simple game for android, and I was trying to add some achievements and leaderboard from google play and some IAP, but after I import my package for these plugins the console show me this error:
ResolutionException: Cannot find candidate artifact for com.android.support:support-v4:25.2.0 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)
What could I do?
Answer by Mkekala · May 30, 2017 at 04:23 PM
I experienced the same issue today. The solution was rather simple but I decided to come back here to share it anyways since many people seem to be having the same problem.
To fix the problem, simply check that you have all the required pieces of the Android SDK installed. Although the Android Support Repository is not listed as a required dependency in the Google Play Games plugin's Github page, it is required.
Had the same issue when Importing the .unitypackage, I checked my Android SD$$anonymous$$ installed components and the Android Support Repository was not installed, I installed it as well as all other relevant components and now my project is back to being error free.
Thank you $$anonymous$$kekala, 1 up on this answer for sure.