Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
12 Jun 22 - 14 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 /
  • Help Room /
avatar image
1
Question by $$anonymous$$ · Feb 28, 2019 at 04:32 AM · unity 2dandroid buildadmobgoogle playcrashing

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:<>m27(Result) GooglePlayServices.cAnonStorey19:<>m32() Google.RunOnMainThread:ExecuteNext() Google.RunOnMainThread:m6() Google.RunOnMainThread:RunAction(Action) Google.RunOnMainThread:ExecuteAll() Google.RunOnMainThread:Run(Action, Boolean) GooglePlayServices.cAnonStorey17:<>m28(Result) GooglePlayServices.cAnonStorey17:<>m29(Result) GooglePlayServices.ProgressReporter:SignalComplete() GooglePlayServices.ProgressReporter:CommandLineToolCompletion(Result) GooglePlayServices.cAnonStorey2:<>m3() Google.RunOnMainThread:ExecuteNext() Google.RunOnMainThread:m_6() Google.RunOnMainThread:RunAction(Action) Google.RunOnMainThread:ExecuteAll() UnityEditor.EditorApplication:Internal_CallUpdateFunctions()

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 Bobby_F · Apr 08, 2019 at 07:32 PM 0
Share

Hi Austin, We're having the same problem after adding Ad$$anonymous$$ob: Gradle failed to fetch dependencies. ... stderr: 'App\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.GradleWrapper$$anonymous$$ain

Did you have any luck fixing this? Been through chat about corrupted gradle etc. ... have now removed and re-installed sdks etc but still get same problem. Cheers, Stuart

1 Reply

· Add your reply
  • Sort: 
avatar image
5

Answer by ayemaman · Aug 13, 2020 at 09:43 AM

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 :D

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 pashok77007 · Aug 31, 2021 at 01:41 PM 0
Share

YEA! YEA! YEA!

avatar image amazighi1 · Dec 23, 2021 at 11:09 PM 0
Share

thank you dear friend

avatar image jami09 · Mar 30 at 03:47 AM 0
Share

THAAAAANNNKKK YOOOOUUUU!!!! Amazing! I love you

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

176 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 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 Mobile Ads cause Failed to build apk error 0 Answers

My unity STOPS RESPONDING when this function is activated 0 Answers

Black screen instead of playing video 0 Answers

VR Google Cardboard Android App Crashes When I Build It 2 Answers

Admob crashes when game is downloaded from Google Play but not on debug 0 Answers


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