unity3d Unity 2019.3作业失败,出现异常:Google播放服务,Java实用程序+工具未找到异常:找不到jar

rm5edbpk  于 2023-01-13  发布在  Go
关注(0)|答案(2)|浏览(76)

I am trying to build my Unity project, which I work on with another developer via the collab system. They don't have any issues and we are on the exact same project version, however, I get this error every time I open the project and haven't been able to find a fix. I have tried reinstalling Unity and messing with the JDK/SDK options a bit, but haven't been able to make any difference.
I am pretty sure it is a problem with the Google Play Services plugin though, and I'm not sure if I've managed to delete some dependencies via Firebase.
Here's the error: Job failed with exception: GooglePlayServices.JavaUtilities+ToolNotFoundException: jar not found. at GooglePlayServices.PlayServicesResolver.ExtractZip (System.String zipFile, System.Collections.Generic.IEnumerable 1[T] extractFilenames, System.String outputDirectory, System.Boolean update) [0x00132] in Z:\tmp\tmp.ab7x7pd8vv\third_party\unity\unity_jar_resolver\source\PlayServicesResolver\src\PlayServicesResolver.cs:2437 at Google.GradleWrapper.Extract (Google.Logger logger) [0x00000] in Z:\tmp\tmp.ab7x7pd8vv\third_party\unity\unity_jar_resolver\source\PlayServicesResolver\src\GradleWrapper.cs:100 at GooglePlayServices.GradleResolver.GradleResolution (System.String destinationDirectory, System.String androidSdkPath, System.Boolean logErrorOnMissingArtifacts, System.Boolean closeWindowOnCompletion, System.Action 1[T] resolutionComplete) [0x00093] in Z:\tmp\tmp.ab7x7pd8vv\third_party\unity\unity_jar_resolver\source\PlayServicesResolver\src\GradleResolver.cs:267 at GooglePlayServices.GradleResolver.DoResolutionUnsafe (System.String destinationDirectory, System.Boolean closeWindowOnCompletion, System.Action resolutionComplete) [0x000bc] in Z:\tmp\tmp.ab7x7pd8vv\third_party\unity\unity_jar_resolver\source\PlayServicesResolver\src\GradleResolver.cs:820 at GooglePlayServices.GradleResolver+<DoResolution>c__AnonStorey5.<>m__0 () [0x00000] in Z:\tmp\tmp.ab7x7pd8vv\third_party\unity\unity_jar_resolver\source\PlayServicesResolver\src\GradleResolver.cs:710 at Google.RunOnMainThread.ExecuteNext () [0x0003d] in Z:\tmp\tmp.c5cHAkrYVv\third_party\unity\unity_jar_resolver\source\VersionHandlerImpl\src\RunOnMainThread.cs:377 UnityEngine.Debug:LogError(Object) Google.RunOnMainThread:ExecuteNext() (at Z:/tmp/tmp.c5cHAkrYVv/third_party/unity/unity_jar_resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:379) Google.RunOnMainThread:<ExecuteAll>m__1() (at Z:/tmp/tmp.c5cHAkrYVv/third_party/unity/unity_jar_resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:408) Google.RunOnMainThread:RunAction(Action) (at Z:/tmp/tmp.c5cHAkrYVv/third_party/unity/unity_jar_resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:234) Google.RunOnMainThread:ExecuteAll() (at Z:/tmp/tmp.c5cHAkrYVv/third_party/unity/unity_jar_resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:406) Google.RunOnMainThread:Run(Action, Boolean) (at Z:/tmp/tmp.c5cHAkrYVv/third_party/unity/unity_jar_resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:363) GooglePlayServices.GradleResolver:DoResolution(String, Boolean, Action) (at Z:/tmp/tmp.ab7x7pd8vv/third_party/unity/unity_jar_resolver/source/PlayServicesResolver/src/GradleResolver.cs:709) GooglePlayServices.PlayServicesResolver:ResolveUnsafe(Action 1, Boolean, Boolean, Boolean) (at Z:/tmp/tmp.ab7x7pd8vv/third_party/unity/unity_jar_resolver/source/PlayServicesResolver/src/PlayServicesResolver.cs:1786) GooglePlayServices.c__AnonStorey5:<>m__0() (at Z:/tmp/tmp.ab7x7pd8vv/third_party/unity/unity_jar_resolver/source/PlayServicesResolver/src/PlayServicesResolver.cs:1604) GooglePlayServices.PlayServicesResolver:ExecuteNextResolveJob() (at Z:/tmp/tmp.ab7x7pd8vv/third_party/unity/unity_jar_resolver/source/PlayServicesResolver/src/PlayServicesResolver.cs:1461) GooglePlayServices.PlayServicesResolver:ScheduleResolve(Boolean, Boolean, Action 1, Boolean) (at Z:/tmp/tmp.ab7x7pd8vv/third_party/unity/unity_jar_resolver/source/PlayServicesResolver/src/PlayServicesResolver.cs:1617) GooglePlayServices.PlayServicesResolver:AutoResolve(Action) (at Z:/tmp/tmp.ab7x7pd8vv/third_party/unity/unity_jar_resolver/source/PlayServicesResolver/src/PlayServicesResolver.cs:1134) GooglePlayServices.PlayServicesResolver:<ScheduleAutoResolve>m__8() (at Z:/tmp/tmp.ab7x7pd8vv/third_party/unity/unity_jar_resolver/source/PlayServicesResolver/src/PlayServicesResolver.cs:1113) Google.RunOnMainThread:ExecutePollingJobs() (at Z:/tmp/tmp.c5cHAkrYVv/third_party/unity/unity_jar_resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:300) Google.RunOnMainThread:<ExecuteAll>m__1() (at Z:/tmp/tmp.c5cHAkrYVv/third_party/unity/unity_jar_resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:414) Google.RunOnMainThread:RunAction(Action) (at Z:/tmp/tmp.c5cHAkrYVv/third_party/unity/unity_jar_resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:234) Google.RunOnMainThread:ExecuteAll() (at Z:/tmp/tmp.c5cHAkrYVv/third_party/unity/unity_jar_resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:406) UnityEditor.EditorApplication:Internal_CallUpdateFunctions()
Also, I don't have a Z drive on my device.
Thanks

3hvapo4f

3hvapo4f1#

在花了很长时间试图修复这个问题,然后决定张贴这个请求,我设法修复它。
不是100%确定我是怎么做到的,但当我切换到不同的场景并试图进入播放模式时,“Android依赖关系解决程序”打开并扫描问题,发现了一些,然后修复了它们。
希望这足以帮助任何人谁得到类似的问题!

11dmarpk

11dmarpk2#

这是我如何修复它:
打开首选项/外部工具/
然后取消选中并再次选中“Android”下的所有复选标记
Android resolver将在进入playmode后启动,并自动解决所有问题。

相关问题