Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • 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
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

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
0
Question by donimation · Oct 27, 2016 at 07:55 PM · androidplugingoogle playenvironmentsetup

Google Play Games plugin introduces -Unable to find the Android SDK manager tool. - error

Hello everyone,

Trying to wrap up my first app and I'm looking for some advice.

In an effort to implement a Leaderboards plugin I purchased from the asset store I have recently gone through these steps:

  1. Installed Google Play Games plugin from Github.

  2. Created a google developer account that gave me access to the Console.

  3. Created a signed APK that the aforementioned console was happy with.

  4. Successfully completed the setup process for the Google Play Games plugin from Unity.

Now I'm getting the following errors:

  1. Resolver version is now: 10101

  2. ERROR: Unable to find dependency com.google.android.gms play-services-games 9+ in ($SDK\extras\android\m2repository

  3. >> auth

  4. >> support

  5. Unable to find the Android SDK manager tool. Required Android packages (extra-google-m2repository, extra-android-m2repository) can not be installed. Android SDK path not set. Set the Android SDK property using the Unity "Edit > Preferences > External Tools" menu option on Windows or the "Unity > Preferences > External Tools" menu option on OSX. Alternatively, set the ANDROID_HOME environment variable

I installed Android Studio probably about a year ago. The path to the android SDK and JDK have been set and working fine (up until now at least.) I think I need to access this SDK manager tool but I don't know how...

Q: Do I need to install something else? perhaps I need an update of sorts? Or maybe if I re-installed something? or D:(?)

I'm trying all this on a barebones "test" project so I haven't even introduced the Leaderboards Asset yet.

That's about all the relevant info I can think of ATM. Thank you for reading; any feedback would be greatly appreciated!

Best regards, Don

Comment
Add comment · Show 1
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 donimation · Oct 28, 2016 at 04:18 PM 0
Share

Reinstalling Android Studio... [V 2.2.2]

5 Replies

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

Answer by kleber-swf · Oct 28, 2016 at 05:00 PM

A good start point is:
https://docs.unity3d.com/Manual/android-sdksetup.html

It seems that your Android SDK isn't installed or properly configured in Unity. The SDK Manager is a program where you manage the installation of sdks and their versions related to Android development.

For me, I usually install the android SDK at: C:\devel\android-sdk, so the SDK Manager is at C:\devel\android-sdk\SDK Manager.exe. In Unity, The Android SDK path inside Preferences > External Tools must be root folder of SDK's installation (in my case C:\devel\android-sdk)

After the installation/update of everything you need, you need to setup the Google Play Services pasting a xml you copied from your Google Play Console in Window > Google Play Games > Setup > Android Setup (make sure you have no compiler errors, otherwise the menu will not show up). This is explained right here:
https://github.com/playgameservices/play-games-plugin-for-unity#configure-your-game

The steps are basically:

  1. install the SDK Manager

  2. install latest Android Platform, Platform Tools and USB drivers

  3. configure Unity to point to the Android SDK installation folder

  4. install the Google Services plugin

  5. configure the plugin

Let me know if this worked for you.

Comment
Add comment · Show 7 · 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 donimation · Oct 28, 2016 at 06:31 PM 0
Share

Thank you for the response @kleber-swf !

Right before I saw your answer, I decided to go ahead and reinstall Android Studio (bundle with the SD$$anonymous$$) and changed the path in the Preferences>External Tools.

That took care of the main SD$$anonymous$$ manager Tool error. However I still get a couple more warnings about:

  1. Resolver version is now: 10101

  2. WARNING: No compatible versions of com.android.support:support-v4 required by...

  3. WARNING: No compatible versions of com.android.support:support-annotations required by ...

Thanks to your post I'm sure I'll have those straightened out soon as well:)

I appreciate the feedback; I'll come back and accept the answer as correct once I'm in the clear;|

avatar image kleber-swf donimation · Oct 28, 2016 at 09:09 PM 0
Share

I don't know what those warnings means, but I'm developing an Android game with Google Play Services and they are here too. But so far no harm. All achievements and scoreboards are working fine :)

avatar image donimation kleber-swf · Oct 30, 2016 at 09:56 PM 0
Share

have you been able to build to a device? I just tried it and I'm getting a "UnityException: Resource compilation failed!" After a quick search I'm thinking I might need to make sure I get the latest JD$$anonymous$$ too. [ edit-with the corresponding path in Preferences>Tools of-course ]

avatar image Naphier donimation · Oct 29, 2016 at 04:29 AM 1
Share

Sounds like you're using the Google Player Services JAR resolver. In your Android SD$$anonymous$$ manager you'll also want to make sure to install the repositories for Android Support Repository and Google Repository, That will take care of Warning #2 and #3. #1 is just info telling you what har resolver version is running.

avatar image kleber-swf Naphier · Oct 30, 2016 at 12:25 PM 0
Share

It's weird. I checked and it seems that both are installed in my SD$$anonymous$$ $$anonymous$$anager. But the same warnings continue to appear to me.

Show more comments
avatar image
2

Answer by donimation · Nov 03, 2016 at 05:11 PM

In addition to the steps mentioned above I had to re-install the latest JDK (and edit the path pointing to it in Preferences>External Tools) I think runing the Assets>PlayServices Resolver>Android Resolver>Resolve Client Jars helped fix some of the Warning Logs. Unstuck, for now:)

Thanks again @kleber-swf and @Naphier for helping me solve this.

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
2

Answer by PointyPigheadGames · Jan 04, 2017 at 08:35 PM

I just installed the 2 packages manually. Open your SDK Manager, and install Android Support Repository and Google Repository. This should fix your problem.

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 ecequalsm2 · Mar 13, 2018 at 05:18 PM

I'm having a similar issue. But I'm using a mac, which has proven to be a pain when it comes to developing for Android. but I'm getting these errors:

Error 1: Gradle failed to fetch dependencies.

Failed to run '/Users/milliemilagne/Documents/EC=M2 Games/Spacey Boy/Spacey Boy/Temp/PlayServicesResolverGradle/gradlew -b "/Users/milliemilagne/Documents/EC=M2 Games/Spacey Boy/Spacey Boy/Temp/PlayServicesResolverGradle/PlayServicesResolver.scripts.download_artifacts.gradle" --no-daemon "-PANDROID_HOME=/Users/milliemilagne/GameDev/Android/sdk" "-PTARGET_DIR=/Users/milliemilagne/Documents/EC=M2 Games/Spacey Boy/Spacey Boy/Assets/Plugins/Android" "-PMAVEN_REPOS=https://maven.google.com;file:////Users/milliemilagne/Documents/EC=M2%20Games/Spacey%20Boy/Spacey%20Boy/Assets/EasyMobile/Plugins/Android/m2repository" "-PPACKAGES_TO_COPY=com.google.android.gms:play-services-games:10+;com.google.android.gms:play-services-nearby:10+;com.google.android.gms:play-services-auth:10+;com.google.android.gms:play-services-gcm:+;com.google.android.gms:play-services-location:+;com.android.support:customtabs:+;com.android.support:support-v4:+;com.android.support:support-v4:22.1.+;com.sglib.easymobile:easy-mobile:+"' stdout:

stderr:

FAILURE: Build failed with an exception.

  • Where: Build file '/Users/milliemilagne/Documents/EC=M2 Games/Spacey Boy/Spacey Boy/Temp/PlayServicesResolverGradle/PlayServicesResolver.scripts.download_artifacts.gradle' line: 127

  • What went wrong: A problem occurred evaluating root project 'PlayServicesResolverGradle'.

    For input string: "0-alpha1"

  • Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

  • Get more help at https://help.gradle.org

BUILD FAILED in 3s

exit code: 1

UnityEngine.Debug:LogError(Object) Google.Logger:Log(String, LogLevel) GooglePlayServices.PlayServicesResolver:Log(String, LogLevel) GooglePlayServices.c_AnonStorey14:<>m1F(Result) GooglePlayServices.cAnonStorey15:<>m_28() GooglePlayServices.PlayServicesResolver:PumpUpdateQueue() UnityEditor.EditorApplication:Internal_CallUpdateFunctions()

Error 2: Unable to find the Android SDK manager tool.

The following Required Android packages cannot be installed: extras;google;m2repository extras;android;m2repository

UnityEngine.Debug:LogError(Object) Google.Logger:Log(String, LogLevel) GooglePlayServices.PlayServicesResolver:Log(String, LogLevel) GooglePlayServices.c_AnonStorey19:<>m27(IAndroidSdkManager) GooglePlayServices.AndroidSdkManager:CreateFailed(Action`1) GooglePlayServices.AndroidSdkManager:Create(String, Action`1) GooglePlayServices.ResolverVer1_1:InstallAndroidSdkPackagesAndResolve(String, HashSet`1, Dictionary`2, Action) GooglePlayServices.cAnonStorey18:<>m26(List`1) GooglePlayServices.cAnonStorey14:<>m1F(Result) GooglePlayServices.cAnonStorey15:<>m_28() GooglePlayServices.PlayServicesResolver:PumpUpdateQueue() UnityEditor.EditorApplication:Internal_CallUpdateFunctions()

Any suggestions are greatly appreciated.

Comment
Add comment · Show 3 · 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 Russel1 · Apr 03, 2018 at 09:03 AM 0
Share

Did you already fix the problem?

avatar image deetru · Apr 30, 2018 at 09:40 AM 0
Share

I'm having the exact same issue. Were you able to fix it?

Currently running Unity 2017.4f1 Android Studio 3.1.2 with SD$$anonymous$$ Platforms 8.0 and 8.1 JD$$anonymous$$1.8.0_172

Any help would be greatly appreciated.

avatar image Russel1 deetru · Apr 30, 2018 at 10:00 AM 0
Share

For me helped, updating a used SD$$anonymous$$ (OneSignal).

avatar image
0

Answer by ianholing · Jun 23, 2017 at 05:46 PM

Try to use new Gradle Build tool in Unity (Works for me)

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

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.

Follow this Question

Answers Answers and Comments

105 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 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 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 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

Google Play Services sign in not working well on Unity Android 1 Answer

Google+ authorization problem. 1 Answer

Build finished after Google Play Games plugin setup but gives 2 FileNotFoundException (s) Should I be worried? 2 Answers

Unity4.6.1&Google Play Plugin Freeze Problem On Exit On Android 3 Answers

Problem with Google Play Game Services: Invalid Classname 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges