Gradle Failed to Fetch Dependencies

1,399 views
Skip to first unread message

infini...@gmail.com

unread,
Jul 18, 2018, 11:29:03 AM7/18/18
to Google Mobile Ads SDK Developers

I am using JDK 1.8.0_172    and Unity 2017.1.0p5
Can anyone tell me how to solve android dependencies.
In the Unity editor, select Assets > Play Services Resolver > Android Resolver > ForceResolve   below error comes,

Gradle failed to fetch dependencies.

Failed to run 'D:\Unity C\UnityProjects\RFPS Practice Game\AdsPakage\Temp\PlayServicesResolverGradle\gradlew.bat -b "D:\Unity C\UnityProjects\RFPS Practice Game\AdsPakage\Temp\PlayServicesResolverGradle\PlayServicesResolver.scripts.download_artifacts.gradle" --no-daemon "-PANDROID_HOME=C:/Users/HP/AppData/Local/Android/Sdk" "-PTARGET_DIR=D:\Unity C\UnityProjects\RFPS Practice Game\AdsPakage\Assets\Plugins\Android" "-PMAVEN_REPOS=https://maven.google.com/" "-PPACKAGES_TO_COPY=com.google.android.gms:play-services-ads:15.0.1"'
stdout:
Unzipping C:\Users\HP\.gradle\wrapper\dists\gradle-4.2.1-bin\dajvke9o8kmaxbu0kc5gcgeju\gradle-4.2.1-bin.zip to C:\Users\HP\.gradle\wrapper\dists\gradle-4.2.1-bin\dajvke9o8kmaxbu0kc5gcgeju

stderr:
Exception in thread "main" java.util.zip.ZipException: error in opening zip file
    at java.util.zip.ZipFile.open(Native Method)
    at java.util.zip.ZipFile.<init>(ZipFile.java:225)
    at java.util.zip.ZipFile.<init>(ZipFile.java:155)
    at java.util.zip.ZipFile.<init>(ZipFile.java:169)
    at org.gradle.wrapper.Install.unzip(Install.java:215)
    at org.gradle.wrapper.Install.access$600(Install.java:27)
    at org.gradle.wrapper.Install$1.call(Install.java:75)
    at org.gradle.wrapper.Install$1.call(Install.java:48)
    at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:69)
    at org.gradle.wrapper.Install.createDist(Install.java:48)
    at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:107)
    at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)

exit code: 1

UnityEngine.Debug:LogError(Object)
Google.Logger:Log(String, LogLevel)
GooglePlayServices.PlayServicesResolver:Log(String, LogLevel)
GooglePlayServices.<GradleResolution>c__AnonStorey14:<>m__24(Result)
GooglePlayServices.<GradleResolution>c__AnonStorey15:<>m__2D()
GooglePlayServices.PlayServicesResolver:PumpUpdateQueue()
UnityEditor.EditorApplication:Internal_CallUpdateFunctions()
Dependencieserror.png

mobileadssdk-a...@google.com

unread,
Jul 18, 2018, 3:21:33 PM7/18/18
to infini...@gmail.com, Google Mobile Ads SDK Developers
Hi there,

This looks like an Unity/JDK/SDK setup specific issue and I would suggest that you go through Unity's Support forum to get this resolved. I found one interesting thread that might be useful in your case. Let us know if you need anything else related to the Mobile Ads SDK.

Regards,
Deepika Uragayala
Mobile Ads SDK Team
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+ page:
    http://googleadsdeveloper.blogspot.com
    https://plus.google.com/115658573333388777174/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

--

---
You received this message because you are subscribed to the Google Groups "Google Mobile Ads SDK Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads-sdk+unsub...@googlegroups.com.
To post to this group, send email to google-admob-ads-sdk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-admob-ads-sdk/e69d133e-9dd2-4961-8eb7-278bd1bb4a1f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages