Android Resolving Dependencies Failed

84 views
Skip to first unread message
Message has been deleted
Message has been deleted

周朱莉

unread,
Mar 4, 2024, 9:45:28 AM3/4/24
to Google Mobile Ads SDK Developers
The environment:
Unity version: 2022.2.8
Google Mobile Ads Unity plugin version: 8.7.0
Platform: Unity Editor
Platform OS version: Windows 11
There is no problem with the network, the port is not occupied, and the URL can be opened on the web page.
Testing on different machines shows the same problem.

The problem show:
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"

                  > Connect to 127.0.0.1:4780 [/127.0.0.1] failed: Connection refused: connectReporting 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.

* What went wrong:
A problem occurred configuring root project 'PlayServicesResolverGradle'.
> Could not resolve all artifacts for configuration ':classpath'.
   > Could not resolve com.android.tools.build.jetifier:jetifier-processor:1.0.+.
     Required by:
         project :
      > Failed to list versions for com.android.tools.build.jetifier:jetifier-processor.
         > Unable to load Maven meta-data from https://dl.google.com/dl/android/maven2/com/android/tools/build/jetifier/jetifier-processor/maven-metadata.xml.
            > Could not HEAD 'https://dl.google.com/dl/android/maven2/com/android/tools/build/jetifier/jetifier-processor/maven-metadata.xml'.
               > Connect to 127.0.0.1:4780 [/127.0.0.1] failed: Connection refused: connect
      > Failed to list versions for com.android.tools.build.jetifier:jetifier-processor.
         > Unable to load Maven meta-data from https://repo.maven.apache.org/maven2/com/android/tools/build/jetifier/jetifier-processor/maven-metadata.xml.
            > Could not get resource 'https://repo.maven.apache.org/maven2/com/android/tools/build/jetifier/jetifier-processor/maven-metadata.xml'.
               > Could not GET 'https://repo.maven.apache.org/maven2/com/android/tools/build/jetifier/jetifier-processor/maven-metadata.xml'.
                  > Connect to 127.0.0.1:4780 [/127.0.0.1] failed: Connection refused: connect

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 25s

exit code: 1

Mobile Ads SDK Forum Advisor

unread,
Mar 5, 2024, 4:46:31 AM3/5/24
to a4654...@gmail.com, google-adm...@googlegroups.com
Hi,

Thank you for contacting the Mobile Ads SDK support team.

We have tried running Google sample project with the unity version 2022.2.8 and Mobile Ads SDK version 8.7.0 and able to run the application and load the ads successfully. From the logs provided it can be observed that the issue might be because of gradle properties settings and nothing related to Mobile Ads SDK.
 
This message is in relation to case "ref:!00D1U01174p.!5004Q02rzdrC:ref"

Thanks,
 
Google Logo Mobile Ads SDK Team

 

Reply all
Reply to author
Forward
0 new messages