- Home /
Gradle failed to fetch dependencies. (Google Play Services)
A project with google play services inside works fine on machine with windows 8.1 but when ported to windows 10 the play service resolver can't resolve and through exception "Gradle field to fetch dependencies ". Any help?. Both t machine have same jdk and SDK versions.
Click Tools > Android > SD$$anonymous$$ $$anonymous$$anager.
Click into the SD$$anonymous$$ Tools tab.
Select and install Google Play Services (rev 30) and Google Repository (rev 26). See the image below.
Answer by MaxxRafen · Apr 07, 2018 at 12:38 AM
It most likely means that windows is looking in the wrong place for the JDK.
Check the path shown in the error. You can set the path in Environment Variables in the windows properties advanced section.
Right click on "my computer" and go to properties.
Go to the Advanced tab
Click on the Environmental Variables... button
Find the JAVA_HOME variable under System Variables
Change the value to wherever this file actually exists for you. (for me it was C:\Program Files\Java\jdk-10)
Restart Unity
I hope that helps!
Your answer
Follow this Question
Related Questions
Showing Google Play Game Leaderboard UI not working at all 4 Answers
Leaderboards and achievements not working -- Google Play Services 0 Answers
Leaderboard issue 0 Answers
Admob and GooglePlayGames not working together 1 Answer
What to do when user clicks back on google play games realtime multiplayer auto-match ui ? 0 Answers