Resolving android dependencies unity stuck at 0% and it shows me an error in the console (first Build ,complete Beginner)

Win32Exception: ApplicationName=‘C:\Users\ASUS\Downloads\Capstone Hero Vired\Unity\PROJECT-EDEN\PROJECT EDEN\Temp\PlayServicesResolverGradle\gradlew.bat’, CommandLine=‘–daemon -b “C:\Users\ASUS\Downloads\Capstone Hero Vired\Unity\PROJECT-EDEN\PROJECT EDEN\Temp\PlayServicesResolverGradle\PlayServicesResolver.scripts.download_artifacts.gradle” “-PANDROID_HOME=C:/Program Files/Unity/Hub/Editor/2022.3.48f1/Editor/Data/PlaybackEngines/AndroidPlayer\SDK” “-PTARGET_DIR=C:\Users\ASUS\Downloads\Capstone Hero Vired\Unity\PROJECT-EDEN\PROJECT EDEN\Assets\Plugins\Android” “-PMAVEN_REPOS=https://maven.google.com/” “-PPACKAGES_TO_COPY=com.unity3d.ads:unity-ads:[4.12.0,4.13[” “-PUSE_JETIFIER=1” “-PDATA_BINDING_VERSION=7.4.2”’, CurrentDirectory=‘C:\Users\ASUS\Downloads\Capstone Hero Vired\Unity\PROJECT-EDEN\PROJECT EDEN\Temp\PlayServicesResolverGradle’, Native error= The system cannot find the file specified.

System.Diagnostics.Process.StartWithCreateProcess (System.Diagnostics.ProcessStartInfo startInfo) (at <09cbc7ca916345fdbceb45137018efd3>:0)
System.Diagnostics.Process.Start () (at <09cbc7ca916345fdbceb45137018efd3>: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.Dictionary2[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.Dictionary2[TKey,TValue] envVars, GooglePlayServices.CommandLine+IOHandler ioHandler) (at <6107d0e161ea44f5b1a06a3cb63d4bc0>:0)
GooglePlayServices.CommandLine+c_AnonStorey0.<>m_1 () (at <6107d0e161ea44f5b1a06a3cb63d4bc0>:0)
System.Threading.ThreadHelper.ThreadStart_Context (System.Object state) (at <31687ccd371e4dc6b0c23a1317cf9474>:0)
System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) (at <31687ccd371e4dc6b0c23a1317cf9474>:0)
System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) (at <31687ccd371e4dc6b0c23a1317cf9474>:0)

System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state) (at <31687ccd371e4dc6b0c23a1317cf9474>:0)
System.Threading.ThreadHelper.ThreadStart () (at <31687ccd371e4dc6b0c23a1317cf9474>:0)
UnityEngine.<>c:b__0_0(Object, UnhandledExceptionEventArgs)

no idea what I should do I have a submission for my course tomorrow and I’m panicking . I’ve been struggling with this for the whole day.

  • I have removed the file from Onedrive to a new location and rebuilt the game.
  • reconected the paths of the SDK JDK and NDK and Gradle
  • I’ve also done the temp folder stuff
    Im tired and exhausted doing it , I need some help.

It looks like you’re using LevelPlay, it has an with external dependency resolver, which it distributes, gradlew.bat is missing.

Basically you need to manually update external dependency resolver by downloading from here and importing into Unity project - unity-jar-resolver/external-dependency-manager-1.2.183.unitypackage at master · googlesamples/unity-jar-resolver · GitHub

1 Like