Open nicolasdeory opened 6 years ago
Hi i get similar error but i have java.net.UnknownHostException. This only happes in my MacOS but works fine in windows. Can someone please help
Gradle failed to fetch dependencies.
Failed to run '/Users/guna_pc/Desktop/Allien_Hole/Temp/PlayServicesResolverGradle/gradlew -b "/Users/guna_pc/Desktop/Allien_Hole/Temp/PlayServicesResolverGradle/PlayServicesResolver.scripts.download_artifacts.gradle" --no-daemon "-PANDROID_HOME=/Users/guna_pc/Library/Android/sdk" "-PTARGET_DIR=/Users/guna_pc/Desktop/Allien_Hole/Assets/Plugins/Android" "-PMAVEN_REPOS=file:////Users/guna_pc/Desktop/Allien_Hole/Assets/GooglePlayGames/Editor/m2repository" "-PPACKAGES_TO_COPY=com.google.games:gpgs-plugin-support:0.9.50"' stdout: Downloading https://services.gradle.org/distributions/gradle-4.2.1-bin.zip
stderr:
Exception in thread "main" java.net.UnknownHostException: services.gradle.org
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:184)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:589)
at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:673)
at sun.security.ssl.BaseSSLSocketImpl.connect(BaseSSLSocketImpl.java:173)
at sun.net.NetworkClient.doConnect(NetworkClient.java:180)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:463)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:558)
at sun.net.www.protocol.https.HttpsClient.
exit code: 1
UnityEngine.Debug:LogError(Object)
Google.Logger:Log(String, LogLevel)
GooglePlayServices.PlayServicesResolver:Log(String, LogLevel)
GooglePlayServices.
I believe the solution to this is to add systemProp.http.proxyHost=[192.168.1.1] systemProp.http.proxyPort=[8080] in the gradle.poperties. But where do i find my proxyhost and proxyport on my mac?
Actually i had to change some network sttings in my mac to resolve this
Gradle build fails if the GPGS package is on my Unity project. I've tried using 0.9.50 and 0.9.45, with no difference. "Google play services" is installed on the SDK manager.
These are the build errors: