I had a project that I built for Android and wanted to add Unity Mediation for ads. I clicked install on “Ads Mediation” in the Package Manager and it prompted me to then install the Android Resolver. I did so and when it goes to build now I get a window “Resolving Android Dependencies” with a progress bar that’s stuck at 0% and the error below in console.
I’ve been searching all over for a fix but nothing has helped.
-I’ve tried completely uninstalling and reinstalling Unity Editor and Hub but nothing changed.
-I’ve tried changing the Resolver Settings
-I’ve tried manually inputting the Android SDK JDK NDK and Gradle paths
It looks like its trying to download some Google Gradle file to a temp folder and run it but I guess its just never downloading that file? I really have no clue and am totally lost. I’m ASSUMING I did something wrong, but still tagging as a bug as I followed all the assumed steps to get Ads Mediation to work.
Win32Exception: ApplicationName='D:\UnityProjects\SunsetSpheres\Temp\PlayServicesResolverGradle\gradlew.bat', CommandLine='--no-daemon -b "D:\UnityProjects\SunsetSpheres\Temp\PlayServicesResolverGradle\PlayServicesResolver.scripts.download_artifacts.gradle" "-PANDROID_HOME=D:/UnityHub/UnityEditors/2022.3.11f1/Editor/Data/PlaybackEngines/AndroidPlayer\SDK" "-PTARGET_DIR=D:\UnityProjects\SunsetSpheres\Assets\Plugins\Android" "-PMAVEN_REPOS=https://android-sdk.is.com/;https://maven.google.com/" "-PPACKAGES_TO_COPY=com.ironsource.sdk:mediationsdk:7.2.5;com.google.android.gms:play-services-ads-identifier:17.0.0;com.google.android.gms:play-services-basement:17.2.1" "-PUSE_JETIFIER=0" "-PDATA_BINDING_VERSION=7.1.2"', CurrentDirectory='D:\UnityProjects\SunsetSpheres\Temp\PlayServicesResolverGradle', Native error= The system cannot find the file specified.
System.Diagnostics.Process.StartWithCreateProcess (System.Diagnostics.ProcessStartInfo startInfo) (at <36d5d97f0e39429283d80156f1c7f1fc>:0)
System.Diagnostics.Process.Start () (at <36d5d97f0e39429283d80156f1c7f1fc>:0)
(wrapper remoting-invoke-with-check) System.Diagnostics.Process.Start()
GooglePlayServices.CommandLine.RunViaShell (System.String toolPath, System.String arguments, System.String workingDirectory, System.Collections.Generic.Dictionary`2[TKey,TValue] envVars, GooglePlayServices.CommandLine+IOHandler ioHandler, System.Boolean useShellExecution, System.Boolean stdoutRedirectionInShellMode) (at <6107d0e161ea44f5b1a06a3cb63d4bc0>:0)
GooglePlayServices.CommandLine.Run (System.String toolPath, System.String arguments, System.String workingDirectory, System.Collections.Generic.Dictionary`2[TKey,TValue] envVars, GooglePlayServices.CommandLine+IOHandler ioHandler) (at <6107d0e161ea44f5b1a06a3cb63d4bc0>:0)
GooglePlayServices.CommandLine+<RunAsync>c__AnonStorey0.<>m__1 () (at <6107d0e161ea44f5b1a06a3cb63d4bc0>:0)
System.Threading.ThreadHelper.ThreadStart_Context (System.Object state) (at <834b2ded5dad441e8c7a4287897d63c7>:0)
System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) (at <834b2ded5dad441e8c7a4287897d63c7>:0)
System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) (at <834b2ded5dad441e8c7a4287897d63c7>:0)
System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state) (at <834b2ded5dad441e8c7a4287897d63c7>:0)
System.Threading.ThreadHelper.ThreadStart () (at <834b2ded5dad441e8c7a4287897d63c7>:0)
UnityEngine.<>c:<RegisterUECatcher>b__0_0(Object, UnhandledExceptionEventArgs)