Hi just added in mediation in to my game and this is what I get and wont go away. java_home environment references a directory (C:\Program Files\Unity\Hub\Editor\2020.3.22f1\Editor\Data\PlaybackEngines\AndroidPlayer\OpenJDK) that does not contain java which is required to process android libraries. is what it is saying and this the error I get right after it.
failed with exception: GooglePlayServices.JavaUtilities+ToolNotFoundException: jar not found, C:\Program Files\Unity\Hub\Editor\2020.3.16f1\Editor\Data\PlaybackEngines\AndroidPlayer\OpenJDK references incomplete Java distribution.
at GooglePlayServices.PlayServicesResolver.ExtractZip (System.String zipFile, System.Collections.Generic.IEnumerable1[T] extractFilenames, System.String outputDirectory, System.Boolean update) [0x00130] in <17bf2caa78b94b298adbb078df707d24>:0 at Google.GradleWrapper.Extract (Google.Logger logger) [0x00045] in <17bf2caa78b94b298adbb078df707d24>:0 at GooglePlayServices.GradleResolver.GradleResolution (System.String destinationDirectory, System.String androidSdkPath, System.Boolean logErrorOnMissingArtifacts, System.Boolean closeWindowOnCompletion, System.Action
1[T] resolutionComplete) [0x0009f] in <17bf2caa78b94b298adbb078df707d24>:0
at GooglePlayServices.GradleResolver.DoResolutionUnsafe (System.String destinationDirectory, System.Boolean closeWindowOnCompletion, System.Action resolutionComplete) [0x000ce] in <17bf2caa78b94b298adbb078df707d24>:0
at GooglePlayServices.GradleResolver+c__AnonStorey13.<>m__1D () [0x00000] in <17bf2caa78b94b298adbb078df707d24>:0
at Google.RunOnMainThread.ExecuteNext () [0x0003d] in :0
UnityEngine.Debug:LogError (object)
Google.RunOnMainThread:ExecuteNext ()
Google.RunOnMainThread:m__A ()
Google.RunOnMainThread:RunAction (System.Action)
Google.RunOnMainThread:ExecuteAll ()
Google.RunOnMainThread:Run (System.Action,bool)
GooglePlayServices.GradleResolver:smile:oResolution (string,bool,System.Action)
GooglePlayServices.PlayServicesResolver:ResolveUnsafe (System.Action1<bool>,bool,bool,bool) GooglePlayServices.PlayServicesResolver/<ScheduleResolve>c__AnonStorey1E:<>m__3F () GooglePlayServices.PlayServicesResolver:ExecuteNextResolveJob () GooglePlayServices.PlayServicesResolver:ScheduleResolve (bool,bool,System.Action
1,bool)
GooglePlayServices.PlayServicesResolver:AutoResolve (System.Action)
GooglePlayServices.PlayServicesResolver:m__47 ()
Google.RunOnMainThread:ExecutePollingJobs ()
Google.RunOnMainThread:m__A ()
Google.RunOnMainThread:RunAction (System.Action)
Google.RunOnMainThread:ExecuteAll ()
UnityEditor.EditorApplication:Internal_CallUpdateFunctions ()