Errors Admob SDK

364 views
Skip to first unread message

Kamran Mahmood

unread,
May 25, 2018, 4:28:14 PM5/25/18
to google-adm...@googlegroups.com
Gradle failed to fetch dependencies.

Failed to run 'C:\Users\123\Documents\;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;


I CAN'T CHECK THESE BOXES IN PIC 2 THESE ARE FREEZE .................


Resolution failed

Failed to fetch the following dependencies:
com.google.android.gms:play-services-ads:12.0.1


Now my Android Studio and Unity3d are 2018 version. I am using JDK 8 version because 9 or version 10 JDK unstable i found experience '+ web discussion so Rec-commanding  8JDK because my unity can't build project into apk without 8 JDK.
ERRORS 
(Gradle failed to fetch dependencies.).......
(Resolution failed).........
Solution Please



Capture.JPG
33583415_1787273717999922_7151195641048203264_n.jpg

mobileadssdk-a...@google.com

unread,
May 28, 2018, 5:50:22 AM5/28/18
to Kamran Mahmood, Google Mobile Ads SDK Developers
Hi Kamran,

Thank you for providing us the screenshot of the build error encountered as well as other helpful details.

I tried to test the JDK versions in question, but it seems like only JDK 10 is available in the Oracle website. That said, when I run and build (via Unity 2018.1.1f1) the sample app with the latest Google Mobile Ads Unity plugin version 3.13.1 imported, I also got a build error but a different one (Please see attached screenshot). However, when I revert my JDK version back to 1.8.0_172, I was able to build successfully the sample app. 

On the other hand, I tested Java versions 10.0.1 and 1.8.0_172 with the Android Studio and I was able to build native Android sample apps using both Java versions.

That said, this seems to be a conflict or issue with Unity and the later versions of Java rather than anything specific with the Google Mobile Ads Unity plugin. I suggest that you raise this to the experts over at the Unity developer forums.

Regards,
Ivan Bautista
Mobile Ads SDK Team

builderror.png

beisof...@gmail.com

unread,
Jun 1, 2018, 4:47:52 AM6/1/18
to Google Mobile Ads SDK Developers


I have had exactly  the same problem, i cant figure out. If i do Asset>Play Resolver>Android>Resolve, then it says Resolution Succeeded but ads dont come and if i choose Force Resolve, it says Resolution failed and getting
 
Failed to fetch the following dependencies:
com.google.android.gms:play-services-ads:12.0.1
somebody help us 

mobileadssdk-a...@google.com

unread,
Jun 1, 2018, 6:46:34 AM6/1/18
to beisof...@gmail.com, Google Mobile Ads SDK Developers
Hi,

Below are my responses to your concerns.

If i do Asset>Play Resolver>Android>Resolve, then it says Resolution Succeeded but ads dont come 
If you are able to build and run your app using this solution, then it's best to follow this path instead. For the Ads not loading on your end, there are a number of factors that could impact this. For us to assist you better, you may create a new thread with other helpful details (e.g. error logs) and from there, we could continue with our investigation.

 if i choose Force Resolve, it says Resolution failed and getting
Failed to fetch the following dependencies:
com.google.android.gms:play-services-ads:12.0.1
What JDK version is installed in your machine? Do you only encounter this issue when using JDK 10 or JDK 9? 

beisof...@gmail.com

unread,
Jun 1, 2018, 7:41:10 AM6/1/18
to Google Mobile Ads SDK Developers
JDK8 is installed and latest play services, Unity 5.6.5f1 (32bit).  Actually i had 2 error

1.Error Logs

Gradle failed to fetch dependencies.

Failed to run 'C:\Users\Kokbiyiki\Documents\Reklam\Temp\PlayServicesResolverGradle\gradlew.bat -b "C:\Users\Kokbiyiki\Documents\Reklam\Temp\PlayServicesResolverGradle\PlayServicesResolver.scripts.download_artifacts.gradle" --no-daemon "-PANDROID_HOME=C:/Users/Kokbiyiki/AppData/Local/Android/Sdk" "-PTARGET_DIR=C:\Users\Kokbiyiki\Documents\Reklam\Assets\Plugins\Android" "-PMAVEN_REPOS=https://maven.google.com/" "-PPACKAGES_TO_COPY=com.google.android.gms:play-services-ads:12.0.1"'
stdout:


stderr:
Exception in thread "main" javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at sun.security.ssl.Alerts.getSSLException(Alerts.java:192)
at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1964)
at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:328)
at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:322)
at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1614)
at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:216)
at sun.security.ssl.Handshaker.processLoop(Handshaker.java:1052)
at sun.security.ssl.Handshaker.process_record(Handshaker.java:987)
at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1072)
at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1385)
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1413)
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1397)
at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:559)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:185)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1564)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1492)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:263)
at org.gradle.wrapper.Download.downloadInternal(Download.java:60)
at org.gradle.wrapper.Download.download(Download.java:45)
at org.gradle.wrapper.Install$1.call(Install.java:62)
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)
Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:397)
at sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:302)
at sun.security.validator.Validator.validate(Validator.java:260)
at sun.security.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:324)
at sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:229)
at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:124)
at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1596)
... 20 more
Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at sun.security.provider.certpath.SunCertPathBuilder.build(SunCertPathBuilder.java:141)
at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:126)
at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:280)
at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:392)
... 26 more

exit code: 1

2.Error Logs

Resolution failed

Failed to fetch the following dependencies:
com.google.android.gms:play-services-ads:12.0.1


UnityEngine.Debug:LogError(Object)
Google.Logger:Log(String, LogLevel)
GooglePlayServices.PlayServicesResolver:Log(String, LogLevel)
GooglePlayServices.ResolverVer1_1:LogMissingDependenciesError(List`1)
GooglePlayServices.<DoResolutionUnsafe>c__AnonStorey18:<>m__26(List`1)
GooglePlayServices.<GradleResolution>c__AnonStorey14:<>m__1F(Result)
GooglePlayServices.<GradleResolution>c__AnonStorey15:<>m__28()
GooglePlayServices.PlayServicesResolver:PumpUpdateQueue()
UnityEditor.EditorApplication:Internal_CallUpdateFunctions()


1 Haziran 2018 Cuma 13:46:34 UTC+3 tarihinde mobileadssdk-a...@google.com yazdı:

mobileadssdk-a...@google.com

unread,
Jun 4, 2018, 12:12:12 AM6/4/18
to beisof...@gmail.com, Google Mobile Ads SDK Developers
Hi,

Thank you for the additional information.

I asked about JDK 9 and 10 because what was originally raised in this thread is that there are some issues building the Unity app with JDK 9 or 10 installed but the build issue is not existing using JDK 8. I could also reproduce similar behavior on my end and this seems to be more of an issue with Unity and the later versions of Java rather than with the Google Mobile Ads Unity plugin.

That said, your build issue seems to be different since you've mentioned that you are using JDK 8.

Earlier, you mentioned that if you do "Asset>Play Resolver>Android>Resolve, then it says Resolution Succeeded but ads dont come". Could we just proceed with this path since the build issue was resolved on your end then, investigate on why ads are not loading on your end?

That said, I suggest that you create a new thread in the Google Mobile Ads SDK Developers forum for this and share with us additional information such as the error logs (via Ad events) captured when ads failed to load?
Reply all
Reply to author
Forward
0 new messages