Gradle failed to fetch dependencies?

After adding in Google AdMob to my project my game build was crashing when i tried to run it on my android. I tried to force resolve to fix it but when I try the bar just freezes and gives me this air.

Gradle failed to fetch dependencies.

Failed to run ‘C:\Users\Lenovo\GameMaking\UnityStuff\UnityProjects\Flying & Dying\Temp\PlayServicesResolverGradle\gradlew.bat -b “C:\Users\Lenovo\GameMaking\UnityStuff\UnityProjects\Flying & Dying\Temp\PlayServicesResolverGradle\PlayServicesResolver.scripts.download_artifacts.gradle” --no-daemon “-PANDROID_HOME=C:/Users/Lenovo/AppData/Local/Android/Sdk” “-PTARGET_DIR=C:\Users\Lenovo\GameMaking\UnityStuff\UnityProjects\Flying & Dying\Assets\Plugins\Android” “-PMAVEN_REPOS=https://maven.google.com/” “-PPACKAGES_TO_COPY=com.google.android.gms:play-services-ads:15.0.1”’
stdout:

stderr:
'Dying\Temp\PlayServicesResolverGradle' is not recognized as an internal or external command,
operable program or batch file.
Error: Could not find or load main class org.gradle.wrapper.GradleWrapperMain

exit code: 1

UnityEngine.Debug:LogError(Object)
Google.Logger:Log(String, LogLevel)
GooglePlayServices.PlayServicesResolver:Log(String, LogLevel)
GooglePlayServices.c__AnonStorey17:<>m__27(Result)
GooglePlayServices.c__AnonStorey19:<>m__32()
Google.RunOnMainThread:ExecuteNext()
Google.RunOnMainThread:m__6()
Google.RunOnMainThread:RunAction(Action)
Google.RunOnMainThread:ExecuteAll()
Google.RunOnMainThread:Run(Action, Boolean)
GooglePlayServices.c__AnonStorey17:<>m__28(Result)
GooglePlayServices.c__AnonStorey17:<>m__29(Result)
GooglePlayServices.ProgressReporter:SignalComplete()
GooglePlayServices.ProgressReporter:CommandLineToolCompletion(Result)
GooglePlayServices.c__AnonStorey2:<>m__3()
Google.RunOnMainThread:ExecuteNext()
Google.RunOnMainThread:m__6()
Google.RunOnMainThread:RunAction(Action)
Google.RunOnMainThread:ExecuteAll()
UnityEditor.EditorApplication:Internal_CallUpdateFunctions()

A little late, but…
Remove the “&” from your folder name “Flying & Dying”.
Had the same error just now, searched all over the web and couldn’t believe how simple the fix was :smiley: