googleads / googleads-mobile-unity

Official Unity Plugin for the Google Mobile Ads SDK
https://developers.google.com/admob/unity
Apache License 2.0
1.34k stars 1.08k forks source link

Android Resolving Dependencies Failed #3191

Closed zhouzhuli closed 3 months ago

zhouzhuli commented 3 months ago

[REQUIRED] Step 1: Describe your environment

[REQUIRED] Step 2: Describe the problem

Running Gradle...

F:\Test Projects\Test Build\Temp\PlayServicesResolverGradle\gradlew.bat --no-daemon -b "F:\Test Projects\Test Build\Temp\PlayServicesResolverGradle\PlayServicesResolver.scripts.download_artifacts.gradle" "-PANDROID_HOME=E:/Unity/2022.2.8f1/Editor/Data/PlaybackEngines/AndroidPlayer\SDK" "-PTARGET_DIR=F:\Test Projects\Test Build\Assets\Plugins\Android" "-PMAVEN_REPOS=https://maven.google.com/" "-PPACKAGES_TO_COPY=com.google.android.gms:play-services-ads:22.6.0;com.google.android.ump:user-messaging-platform:2.1.0" "-PUSE_JETIFIER=1" "-PDATA_BINDING_VERSION=7.1.2" Executing command: F:\Test Projects\Test Build\Temp\PlayServicesResolverGradle\gradlew.bat --no-daemon -b "F:\Test Projects\Test Build\Temp\PlayServicesResolverGradle\PlayServicesResolver.scripts.download_artifacts.gradle" "-PANDROID_HOME=E:/Unity/2022.2.8f1/Editor/Data/PlaybackEngines/AndroidPlayer\SDK" "-PTARGET_DIR=F:\Test Projects\Test Build\Assets\Plugins\Android" "-PMAVEN_REPOS=https://maven.google.com/" "-PPACKAGES_TO_COPY=com.google.android.gms:play-services-ads:22.6.0;com.google.android.ump:user-messaging-platform:2.1.0" "-PUSE_JETIFIER=1" "-PDATA_BINDING_VERSION=7.1.2"

Reporting analytics data: /androidresolver/resolve/gradle/failed/fetch?unityVersion=2022.2.8f1&unityPlatform=WindowsEditor&installSource=unitypackage&version=1.2.177&scope= 'Android Resolver: Gradle Resolve: Tool Extraction Failed' ERROR: Gradle failed to fetch dependencies.

Failed to run 'F:\Test Projects\Test Build\Temp\PlayServicesResolverGradle\gradlew.bat --no-daemon -b "F:\Test Projects\Test Build\Temp\PlayServicesResolverGradle\PlayServicesResolver.scripts.download_artifacts.gradle" "-PANDROID_HOME=E:/Unity/2022.2.8f1/Editor/Data/PlaybackEngines/AndroidPlayer\SDK" "-PTARGET_DIR=F:\Test Projects\Test Build\Assets\Plugins\Android" "-PMAVEN_REPOS=https://maven.google.com/" "-PPACKAGES_TO_COPY=com.google.android.gms:play-services-ads:22.6.0;com.google.android.ump:user-messaging-platform:2.1.0" "-PUSE_JETIFIER=1" "-PDATA_BINDING_VERSION=7.1.2"' stdout:

stderr:

FAILURE: Build failed with an exception.

BUILD FAILED in 21s

exit code: 1

Steps to reproduce:

What happened? How can we make the problem occur? This could be a description, log/console output, etc.

Please share a downloadable sample project that reproduces the bug, if available. This greatly helps us to diagnose and fix the issue faster.

Relevant Code:

// TODO(you): code here to reproduce the problem
NVentimiglia commented 3 months ago

@zhouzhuli

Connect to 127.0.0.1:4780 [/127.0.0.1] failed: Connection refused: connect

This might be a firewall or proxy issue. I have experienced this in the past due to charles proxy running.

zhouzhuli commented 3 months ago

Thanks! How did you solve this problem? It doesn’t work even if the network proxy is not turned on.

On Tue, Mar 5, 2024 at 5:34 AM Nicholas Ventimiglia < @.***> wrote:

@zhouzhuli https://github.com/zhouzhuli

Connect to 127.0.0.1:4780 [/127.0.0.1] failed: Connection refused: connect

This might be a firewall or proxy issue. I have experienced this in the past due to charles proxy running.

— Reply to this email directly, view it on GitHub https://github.com/googleads/googleads-mobile-unity/issues/3191#issuecomment-1977499291, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGJNHEHMDRHCI53L66NQVTTYWTSIDAVCNFSM6AAAAABEEUJNACVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNZXGQ4TSMRZGE . You are receiving this because you were mentioned.Message ID: @.***>