- Home /
Question by
GlitchStudioUY · Mar 23, 2019 at 02:33 PM ·
error messagegoogle play gamesmissing
openJDK Google Play Services problem
Hello,
I have a problem with OpenJDK and GooglePlayServices, after install the plugin Unity pop-up an error window:
And output the following message to the debug console:
Job failed with exception: GooglePlayServices.JavaUtilities+ToolNotFoundException: jar not found, kEngines\AndroidPlayer/Tools\OpenJDK\Windows\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\OpenJDK\Windows references incomplete Java distribution.
at GooglePlayServices.PlayServicesResolver.ExtractZip (System.String zipFile, System.String[] extractFilenames, System.String outputDirectory) [0x000a9] in /Users/smiles/dev/src/unity-jar-resolver/source/PlayServicesResolver/src/PlayServicesResolver.cs:1573
at GooglePlayServices.ResolverVer1_1.GradleResolution (System.String destinationDirectory, System.String androidSdkPath, System.Boolean logErrorOnMissingArtifacts, System.Action`1[T] resolutionComplete) [0x000ff] in /Users/smiles/dev/src/unity-jar-resolver/source/PlayServicesResolver/src/ResolverVer1_1.cs:545
at GooglePlayServices.ResolverVer1_1.DoResolutionUnsafe (Google.JarResolver.PlayServicesSupport svcSupport, System.String destinationDirectory, System.Action resolutionComplete) [0x000a1] in /Users/smiles/dev/src/unity-jar-resolver/source/PlayServicesResolver/src/ResolverVer1_1.cs:1064
at GooglePlayServices.ResolverVer1_1+<DoResolution>c__AnonStorey1B.<>m__2D () [0x0000d] in /Users/smiles/dev/src/unity-jar-resolver/source/PlayServicesResolver/src/ResolverVer1_1.cs:946
at GooglePlayServices.ResolverVer1_1.UpdateTryResolution () [0x0003a] in /Users/smiles/dev/src/unity-jar-resolver/source/PlayServicesResolver/src/ResolverVer1_1.cs:961
at Google.RunOnMainThread.ExecuteNext () [0x0003d] in /Users/smiles/dev/src/unity-jar-resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:363
UnityEngine.Debug:LogError(Object)
Google.RunOnMainThread:ExecuteNext() (at /Users/smiles/dev/src/unity-jar-resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:365)
Google.RunOnMainThread:<ExecuteAll>m__6() (at /Users/smiles/dev/src/unity-jar-resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:394)
Google.RunOnMainThread:RunAction(Action) (at /Users/smiles/dev/src/unity-jar-resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:234)
Google.RunOnMainThread:ExecuteAll() (at /Users/smiles/dev/src/unity-jar-resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:392)
Google.RunOnMainThread:Run(Action, Boolean) (at /Users/smiles/dev/src/unity-jar-resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:349)
GooglePlayServices.ResolverVer1_1:DoResolution(PlayServicesSupport, String, Action) (at /Users/smiles/dev/src/unity-jar-resolver/source/PlayServicesResolver/src/ResolverVer1_1.cs:951)
GooglePlayServices.PlayServicesResolver:ResolveUnsafe(Action`1, Boolean) (at /Users/smiles/dev/src/unity-jar-resolver/source/PlayServicesResolver/src/PlayServicesResolver.cs:1368)
GooglePlayServices.<ScheduleResolve>c__AnonStorey12:<>m__1D() (at /Users/smiles/dev/src/unity-jar-resolver/source/PlayServicesResolver/src/PlayServicesResolver.cs:1292)
GooglePlayServices.PlayServicesResolver:ExecuteNextResolveJob() (at /Users/smiles/dev/src/unity-jar-resolver/source/PlayServicesResolver/src/PlayServicesResolver.cs:1211)
GooglePlayServices.PlayServicesResolver:ScheduleResolve(Boolean, Action`1, Boolean) (at /Users/smiles/dev/src/unity-jar-resolver/source/PlayServicesResolver/src/PlayServicesResolver.cs:1302)
GooglePlayServices.PlayServicesResolver:AutoResolve(Action) (at /Users/smiles/dev/src/unity-jar-resolver/source/PlayServicesResolver/src/PlayServicesResolver.cs:885)
GooglePlayServices.PlayServicesResolver:<ScheduleAutoResolve>m__20() (at /Users/smiles/dev/src/unity-jar-resolver/source/PlayServicesResolver/src/PlayServicesResolver.cs:864)
Google.RunOnMainThread:ExecutePollingJobs() (at /Users/smiles/dev/src/unity-jar-resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:286)
Google.RunOnMainThread:<ExecuteAll>m__6() (at /Users/smiles/dev/src/unity-jar-resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:400)
Google.RunOnMainThread:RunAction(Action) (at /Users/smiles/dev/src/unity-jar-resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:234)
Google.RunOnMainThread:ExecuteAll() (at /Users/smiles/dev/src/unity-jar-resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:392)
UnityEditor.EditorApplication:Internal_CallUpdateFunctions()
I don't understand what the problem is, I already have configured JAVA_HOME in the system variables and added the java jdk to the path, and I have correctly installed AndroidStudio with the SDK's. It's curious, because Unity build the game sucefully.
Thanks
error.png
(10.1 kB)
Comment
Answer by Shirzad · Apr 30, 2019 at 08:18 PM
It looks like openjdk would not find the folder for Windows.
Answer by BatteryPower · Feb 13, 2020 at 09:04 PM
Same issue, installed google play from admob suggestion, messed up my app that was working fine before.. WARNING DO NOT INSTALL WITHOUT FIRST BACKING UP
Your answer
![](https://koobas.hobune.stream/wayback/20220612194115im_/https://answers.unity.com/themes/thub/images/avi.jpg)