I have a problem with building an android project

I have had this problem about a year ago, from what I can remember. I recently got back into Unity and still can’t build it. I got 3 errors.

Here are the logs:

> Task :launcher:preBuild UP-TO-DATE
> Task :unityLibrary:preBuild UP-TO-DATE
> Task :launcher:preReleaseBuild UP-TO-DATE
> Task :unityLibrary:preReleaseBuild UP-TO-DATE
> Task :unityLibrary:compileReleaseAidl NO-SOURCE
> Task :launcher:generateReleaseBuildConfig
> Task :launcher:compileReleaseAidl NO-SOURCE
> Task :launcher:generateReleaseResValues
> Task :launcher:javaPreCompileRelease
> Task :launcher:createReleaseCompatibleScreenManifests
> Task :launcher:extractDeepLinksRelease
> Task :unityLibrary:mergeReleaseJniLibFolders
> Task :launcher:extractProguardFiles
> Task :launcher:mergeReleaseJniLibFolders
> Task :unityLibrary:compileReleaseRenderscript NO-SOURCE
> Task :unityLibrary:generateReleaseBuildConfig
> Task :unityLibrary:generateReleaseResValues
> Task :unityLibrary:generateReleaseResources
> Task :launcher:checkReleaseDuplicateClasses
> Task :launcher:mergeReleaseShaders
> Task :launcher:compileReleaseShaders NO-SOURCE
> Task :launcher:generateReleaseAssets UP-TO-DATE
> Task :launcher:processReleaseJavaRes NO-SOURCE
> Task :launcher:collectReleaseDependencies
> Task :unityLibrary:packageReleaseResources
> Task :unityLibrary:mergeReleaseNativeLibs
> Task :launcher:sdkReleaseDependencyData
> Task :unityLibrary:parseReleaseLocalResources
> Task :launcher:validateSigningRelease
> Task :launcher:writeReleaseAppMetadata
> Task :launcher:writeReleaseSigningConfigVersions
> Task :unityLibrary:stripReleaseDebugSymbols
> Task :unityLibrary:javaPreCompileRelease
> Task :unityLibrary:mergeReleaseShaders
> Task :unityLibrary:compileReleaseShaders NO-SOURCE
> Task :unityLibrary:generateReleaseAssets UP-TO-DATE
> Task :unityLibrary:processReleaseManifest
> Task :unityLibrary:copyReleaseJniLibsProjectAndLocalJars
> Task :unityLibrary:packageReleaseAssets
> Task :unityLibrary:packageReleaseRenderscript NO-SOURCE
> Task :unityLibrary:prepareLintJarForPublish
> Task :unityLibrary:prepareReleaseArtProfile
> Task :unityLibrary:processReleaseJavaRes
> Task :unityLibrary:writeReleaseAarMetadata
> Task :unityLibrary:extractDeepLinksRelease
> Task :unityLibrary:compileReleaseLibraryResources
> Task :unityLibrary:writeReleaseLintModelMetadata
> Task :unityLibrary:bundleLibResRelease
> Task :unityLibrary:copyReleaseJniLibsProjectOnly
> Task :unityLibrary:generateReleaseRFile
> Task :launcher:mergeReleaseAssets
> Task :launcher:compileReleaseRenderscript NO-SOURCE
> Task :launcher:generateReleaseResources
> Task :launcher:checkReleaseAarMetadata
> Task :unityLibrary:mergeReleaseJavaResource
> Task :launcher:mergeReleaseResources
> Task :unityLibrary:extractReleaseAnnotations
> Task :launcher:processReleaseMainManifest
> Task :launcher:processReleaseManifest
> Task :launcher:mergeReleaseArtProfile
> Task :launcher:processReleaseManifestForPackage
> Task :launcher:mergeReleaseNativeLibs

> Task :unityLibrary:compileReleaseJavaWithJavac FAILED

> Task :launcher:stripReleaseDebugSymbols
> Task :launcher:compressReleaseAssets
> Task :launcher:desugarReleaseFileDependencies
> Task :launcher:processReleaseResources
51 actionable tasks: 51 executed

0x00007ff7f591736d (Unity) StackWalker::GetCurrentCallstack
0x00007ff7f591c319 (Unity) StackWalker::ShowCallstack
0x00007ff7f68f0fd1 (Unity) GetStacktrace
0x00007ff7f6faf952 (Unity) DebugStringToFile
0x00007ff7f485c056 (Unity) DebugLogHandler_CUSTOM_Internal_Log
0x000001e688f12073 (Mono JIT Code) (wrapper managed-to-native) UnityEngine.DebugLogHandler:Internal_Log (UnityEngine.LogType,UnityEngine.LogOption,string,UnityEngine.Object)
0x000001e688f11f8b (Mono JIT Code) UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[])
0x000001e688f11cd0 (Mono JIT Code) UnityEngine.Logger:Log (UnityEngine.LogType,object)
0x000001e688f11b95 (Mono JIT Code) UnityEngine.Debug:LogError (object)
0x000001e688f116b3 (Mono JIT Code) UnityEditor.Android.GradleInvokationException:ParseAndShowException ()
0x000001e688511d43 (Mono JIT Code) UnityEditor.Android.PostProcessor.PostProcessRunner:RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext)
0x000001e688edf3a3 (Mono JIT Code) UnityEditor.Android.PostProcessAndroidPlayer:PostProcess (UnityEditor.Modules.BuildPostProcessArgs,AndroidPlayerBuildProgram.Data.AndroidPlayerBuildProgramOutput)
0x000001e689504d43 (Mono JIT Code) UnityEditor.Android.AndroidBuildPostprocessor:PostProcess (UnityEditor.Modules.BuildPostProcessArgs,UnityEditor.BuildProperties&)
0x000001e689504411 (Mono JIT Code) UnityEditor.PostprocessBuildPlayer:Postprocess (UnityEditor.BuildTargetGroup,UnityEditor.BuildTarget,int,string,string,string,int,int,UnityEditor.BuildOptions,UnityEditor.RuntimeClassRegistry,UnityEditor.Build.Reporting.BuildReport)
0x000001e689504785 (Mono JIT Code) (wrapper runtime-invoke) <Module>:runtime_invoke_void_int_int_int_object_object_object_int_int_int_object_object (object,intptr,intptr,intptr)
0x00007ffcbae64b6e (mono-2.0-bdwgc) mono_jit_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/mini/mini-runtime.c:3445)
0x00007ffcbad9d204 (mono-2.0-bdwgc) do_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/metadata/object.c:3066)
0x00007ffcbad9d37c (mono-2.0-bdwgc) mono_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/metadata/object.c:3113)
0x00007ff7f582e504 (Unity) scripting_method_invoke
0x00007ff7f580c5d4 (Unity) ScriptingInvocation::Invoke
0x00007ff7f7325591 (Unity) CallMono
0x00007ff7f732e757 (Unity) PostprocessPlayer
0x00007ff7f7328b43 (Unity) DoBuildPlayer_PostBuild
0x00007ff7f7326c3e (Unity) DoBuildPlayer
0x00007ff7f731a155 (Unity) BuildPlayer
0x00007ff7f50a8edf (Unity) BuildPipeline::BuildPlayerInternalNoCheck
0x00007ff7f4e5279c (Unity) BuildPipeline_CUSTOM_BuildPlayerInternalNoCheck
0x000001e68006c077 (Mono JIT Code) (wrapper managed-to-native) UnityEditor.BuildPipeline:BuildPlayerInternalNoCheck (string[],string,string,UnityEditor.BuildTargetGroup,UnityEditor.BuildTarget,int,UnityEditor.BuildOptions,string[],bool)
0x000001e68006b843 (Mono JIT Code) UnityEditor.BuildPlayerWindow/DefaultBuildMethods:BuildPlayer (UnityEditor.BuildPlayerOptions)
0x000001e680067c6b (Mono JIT Code) UnityEditor.BuildPlayerWindow:CallBuildMethods (bool,UnityEditor.BuildOptions)
0x000001e67d6b51b3 (Mono JIT Code) UnityEditor.BuildPlayerWindow:GUIBuildButtons (UnityEditor.Modules.IBuildWindowExtension,bool,bool,bool,UnityEditor.Build.BuildPlatform,UnityEditor.Modules.IBuildPostprocessor)
0x000001e67c53221b (Mono JIT Code) UnityEditor.BuildPlayerWindow:ShowBuildTargetSettings ()
0x000001e65b51cb0b (Mono JIT Code) UnityEditor.BuildPlayerWindow:OnGUI ()
0x000001e5ba75fb62 (Mono JIT Code) UnityEditor.HostView:InvokeOnGUI (UnityEngine.Rect)
0x000001e5ba75f943 (Mono JIT Code) UnityEditor.DockArea:DrawView (UnityEngine.Rect)
0x000001e5f276c053 (Mono JIT Code) UnityEditor.DockArea:OldOnGUI ()
0x000001e5b550bacf (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:DoOnGUI (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect,bool,UnityEngine.Rect,System.Action,bool)
0x000001e5f27594bb (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect,System.Action,bool)
0x000001e65946bd6b (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,System.Action,bool)
0x000001e65946d073 (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,bool)
0x000001e65946ca1b (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:SendEventToIMGUIRaw (UnityEngine.UIElements.EventBase,bool,bool)
0x000001e659468d53 (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:SendEventToIMGUI (UnityEngine.UIElements.EventBase,bool,bool)
0x000001e5a673f6d3 (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:ProcessEvent (UnityEngine.UIElements.EventBase)
0x000001e5a673f2b3 (Mono JIT Code) UnityEngine.UIElements.CallbackEventHandler:HandleEvent (UnityEngine.UIElements.EventBase)
0x000001e5a673efef (Mono JIT Code) UnityEngine.UIElements.CallbackEventHandler:HandleEventAtCurrentTargetAndPhase (UnityEngine.UIElements.EventBase)
0x000001e5a673ed73 (Mono JIT Code) UnityEngine.UIElements.CallbackEventHandler:HandleEventAtTargetPhase (UnityEngine.UIElements.EventBase)
0x000001e659465ccb (Mono JIT Code) UnityEngine.UIElements.MouseCaptureDispatchingStrategy:DispatchEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel)
0x000001e5a675304e (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:ApplyDispatchingStrategies (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel,bool)
0x000001e5a67529db (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:ProcessEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel)
0x000001e5a6738a23 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:ProcessEventQueue ()
0x000001e5a6738893 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:OpenGate ()
0x000001e5a67387eb (Mono JIT Code) UnityEngine.UIElements.EventDispatcherGate:Dispose ()
0x000001e5a6752eb3 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:ProcessEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel)
0x000001e5a674dbe3 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:Dispatch (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel,UnityEngine.UIElements.DispatchMode)
0x000001e5a674da5b (Mono JIT Code) UnityEngine.UIElements.BaseVisualElementPanel:SendEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.DispatchMode)
0x000001e68010ab23 (Mono JIT Code) UnityEngine.UIElements.UIElementsUtility:DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel)
0x000001e68010a413 (Mono JIT Code) UnityEngine.UIElements.UIElementsUtility:UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (int,intptr,bool&)
0x000001e68010a22f (Mono JIT Code) UnityEngine.UIElements.UIEventRegistration:ProcessEvent (int,intptr)
0x000001e68010a14b (Mono JIT Code) UnityEngine.UIElements.UIEventRegistration/<>c:<.cctor>b__1_2 (int,intptr)
0x000001e680109f9d (Mono JIT Code) UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
0x000001e68010a056 (Mono JIT Code) (wrapper runtime-invoke) <Module>:runtime_invoke_void_int_intptr_intptr& (object,intptr,intptr,intptr)
0x00007ffcbae64b6e (mono-2.0-bdwgc) mono_jit_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/mini/mini-runtime.c:3445)
0x00007ffcbad9d204 (mono-2.0-bdwgc) do_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/metadata/object.c:3066)
0x00007ffcbad9d37c (mono-2.0-bdwgc) mono_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/metadata/object.c:3113)
0x00007ff7f582e504 (Unity) scripting_method_invoke
0x00007ff7f580c5d4 (Unity) ScriptingInvocation::Invoke
0x00007ff7f5807225 (Unity) ScriptingInvocation::Invoke<void>
0x00007ff7f596207a (Unity) Scripting::UnityEngine::GUIUtilityProxy::ProcessEvent
0x00007ff7f6358c08 (Unity) GUIView::ProcessRetainedMode
0x00007ff7f6923e9e (Unity) GUIView::OnInputEvent
0x00007ff7f6358b53 (Unity) GUIView::ProcessInputEventFromAPI
0x00007ff7f6358a28 (Unity) GUIView::ProcessInputEvent
0x00007ff7f6924cce (Unity) GUIView::ProcessEventMessages
0x00007ff7f691ea55 (Unity) GUIView::GUIViewWndProc
0x00007ffd37d8e858 (USER32) CallWindowProcW
0x00007ffd37d8e299 (USER32) DispatchMessageW
0x00007ff7f68f7793 (Unity) MainMessageLoop
0x00007ff7f68fd170 (Unity) WinMain
0x00007ff7f7ce03ee (Unity) __scrt_common_main_seh
0x00007ffd37f37344 (KERNEL32) BaseThreadInitThunk
0x00007ffd392226b1 (ntdll) RtlUserThreadStart



Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
C:\Users\HP\Desktop\code\unity\Fruit Catcher\Library\Bee\Android\Prj\Mono2x\Gradle\unityLibrary\src\main\java\com\unity\androidnotifications\UnityNotificationManager.java:165: error: cannot find symbol
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU)
                                                        ^
  symbol:   variable TIRAMISU
  location: class VERSION_CODES
C:\Users\HP\Desktop\code\unity\Fruit Catcher\Library\Bee\Android\Prj\Mono2x\Gradle\unityLibrary\src\main\java\com\unity\androidnotifications\UnityNotificationManager.java:166: error: cannot find symbol
            permissionGranted = mContext.checkCallingOrSelfPermission(Manifest.permission.POST_NOTIFICATIONS) == PackageManager.PERMISSION_GRANTED;
                                                                                         ^
  symbol:   variable POST_NOTIFICATIONS
  location: class permission
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
2 errors

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':unityLibrary:compileReleaseJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 5s

0x00007ff7f591736d (Unity) StackWalker::GetCurrentCallstack
0x00007ff7f591c319 (Unity) StackWalker::ShowCallstack
0x00007ff7f68f0fd1 (Unity) GetStacktrace
0x00007ff7f6faf952 (Unity) DebugStringToFile
0x00007ff7f485c056 (Unity) DebugLogHandler_CUSTOM_Internal_Log
0x000001e688f12073 (Mono JIT Code) (wrapper managed-to-native) UnityEngine.DebugLogHandler:Internal_Log (UnityEngine.LogType,UnityEngine.LogOption,string,UnityEngine.Object)
0x000001e688f11f8b (Mono JIT Code) UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[])
0x000001e688f11cd0 (Mono JIT Code) UnityEngine.Logger:Log (UnityEngine.LogType,object)
0x000001e688f11b95 (Mono JIT Code) UnityEngine.Debug:LogError (object)
0x000001e688f116b3 (Mono JIT Code) UnityEditor.Android.GradleInvokationException:ParseAndShowException ()
0x000001e688511d43 (Mono JIT Code) UnityEditor.Android.PostProcessor.PostProcessRunner:RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext)
0x000001e688edf3a3 (Mono JIT Code) UnityEditor.Android.PostProcessAndroidPlayer:PostProcess (UnityEditor.Modules.BuildPostProcessArgs,AndroidPlayerBuildProgram.Data.AndroidPlayerBuildProgramOutput)
0x000001e689504d43 (Mono JIT Code) UnityEditor.Android.AndroidBuildPostprocessor:PostProcess (UnityEditor.Modules.BuildPostProcessArgs,UnityEditor.BuildProperties&)
0x000001e689504411 (Mono JIT Code) UnityEditor.PostprocessBuildPlayer:Postprocess (UnityEditor.BuildTargetGroup,UnityEditor.BuildTarget,int,string,string,string,int,int,UnityEditor.BuildOptions,UnityEditor.RuntimeClassRegistry,UnityEditor.Build.Reporting.BuildReport)
0x000001e689504785 (Mono JIT Code) (wrapper runtime-invoke) <Module>:runtime_invoke_void_int_int_int_object_object_object_int_int_int_object_object (object,intptr,intptr,intptr)
0x00007ffcbae64b6e (mono-2.0-bdwgc) mono_jit_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/mini/mini-runtime.c:3445)
0x00007ffcbad9d204 (mono-2.0-bdwgc) do_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/metadata/object.c:3066)
0x00007ffcbad9d37c (mono-2.0-bdwgc) mono_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/metadata/object.c:3113)
0x00007ff7f582e504 (Unity) scripting_method_invoke
0x00007ff7f580c5d4 (Unity) ScriptingInvocation::Invoke
0x00007ff7f7325591 (Unity) CallMono
0x00007ff7f732e757 (Unity) PostprocessPlayer
0x00007ff7f7328b43 (Unity) DoBuildPlayer_PostBuild
0x00007ff7f7326c3e (Unity) DoBuildPlayer
0x00007ff7f731a155 (Unity) BuildPlayer
0x00007ff7f50a8edf (Unity) BuildPipeline::BuildPlayerInternalNoCheck
0x00007ff7f4e5279c (Unity) BuildPipeline_CUSTOM_BuildPlayerInternalNoCheck
0x000001e68006c077 (Mono JIT Code) (wrapper managed-to-native) UnityEditor.BuildPipeline:BuildPlayerInternalNoCheck (string[],string,string,UnityEditor.BuildTargetGroup,UnityEditor.BuildTarget,int,UnityEditor.BuildOptions,string[],bool)
0x000001e68006b843 (Mono JIT Code) UnityEditor.BuildPlayerWindow/DefaultBuildMethods:BuildPlayer (UnityEditor.BuildPlayerOptions)
0x000001e680067c6b (Mono JIT Code) UnityEditor.BuildPlayerWindow:CallBuildMethods (bool,UnityEditor.BuildOptions)
0x000001e67d6b51b3 (Mono JIT Code) UnityEditor.BuildPlayerWindow:GUIBuildButtons (UnityEditor.Modules.IBuildWindowExtension,bool,bool,bool,UnityEditor.Build.BuildPlatform,UnityEditor.Modules.IBuildPostprocessor)
0x000001e67c53221b (Mono JIT Code) UnityEditor.BuildPlayerWindow:ShowBuildTargetSettings ()
0x000001e65b51cb0b (Mono JIT Code) UnityEditor.BuildPlayerWindow:OnGUI ()
0x000001e5ba75fb62 (Mono JIT Code) UnityEditor.HostView:InvokeOnGUI (UnityEngine.Rect)
0x000001e5ba75f943 (Mono JIT Code) UnityEditor.DockArea:DrawView (UnityEngine.Rect)
0x000001e5f276c053 (Mono JIT Code) UnityEditor.DockArea:OldOnGUI ()
0x000001e5b550bacf (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:DoOnGUI (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect,bool,UnityEngine.Rect,System.Action,bool)
0x000001e5f27594bb (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect,System.Action,bool)
0x000001e65946bd6b (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,System.Action,bool)
0x000001e65946d073 (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,bool)
0x000001e65946ca1b (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:SendEventToIMGUIRaw (UnityEngine.UIElements.EventBase,bool,bool)
0x000001e659468d53 (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:SendEventToIMGUI (UnityEngine.UIElements.EventBase,bool,bool)
0x000001e5a673f6d3 (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:ProcessEvent (UnityEngine.UIElements.EventBase)
0x000001e5a673f2b3 (Mono JIT Code) UnityEngine.UIElements.CallbackEventHandler:HandleEvent (UnityEngine.UIElements.EventBase)
0x000001e5a673efef (Mono JIT Code) UnityEngine.UIElements.CallbackEventHandler:HandleEventAtCurrentTargetAndPhase (UnityEngine.UIElements.EventBase)
0x000001e5a673ed73 (Mono JIT Code) UnityEngine.UIElements.CallbackEventHandler:HandleEventAtTargetPhase (UnityEngine.UIElements.EventBase)
0x000001e659465ccb (Mono JIT Code) UnityEngine.UIElements.MouseCaptureDispatchingStrategy:DispatchEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel)
0x000001e5a675304e (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:ApplyDispatchingStrategies (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel,bool)
0x000001e5a67529db (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:ProcessEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel)
0x000001e5a6738a23 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:ProcessEventQueue ()
0x000001e5a6738893 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:OpenGate ()
0x000001e5a67387eb (Mono JIT Code) UnityEngine.UIElements.EventDispatcherGate:Dispose ()
0x000001e5a6752eb3 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:ProcessEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel)
0x000001e5a674dbe3 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:Dispatch (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel,UnityEngine.UIElements.DispatchMode)
0x000001e5a674da5b (Mono JIT Code) UnityEngine.UIElements.BaseVisualElementPanel:SendEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.DispatchMode)
0x000001e68010ab23 (Mono JIT Code) UnityEngine.UIElements.UIElementsUtility:DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel)
0x000001e68010a413 (Mono JIT Code) UnityEngine.UIElements.UIElementsUtility:UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (int,intptr,bool&)
0x000001e68010a22f (Mono JIT Code) UnityEngine.UIElements.UIEventRegistration:ProcessEvent (int,intptr)
0x000001e68010a14b (Mono JIT Code) UnityEngine.UIElements.UIEventRegistration/<>c:<.cctor>b__1_2 (int,intptr)
0x000001e680109f9d (Mono JIT Code) UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
0x000001e68010a056 (Mono JIT Code) (wrapper runtime-invoke) <Module>:runtime_invoke_void_int_intptr_intptr& (object,intptr,intptr,intptr)
0x00007ffcbae64b6e (mono-2.0-bdwgc) mono_jit_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/mini/mini-runtime.c:3445)
0x00007ffcbad9d204 (mono-2.0-bdwgc) do_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/metadata/object.c:3066)
0x00007ffcbad9d37c (mono-2.0-bdwgc) mono_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/metadata/object.c:3113)
0x00007ff7f582e504 (Unity) scripting_method_invoke
0x00007ff7f580c5d4 (Unity) ScriptingInvocation::Invoke
0x00007ff7f5807225 (Unity) ScriptingInvocation::Invoke<void>
0x00007ff7f596207a (Unity) Scripting::UnityEngine::GUIUtilityProxy::ProcessEvent
0x00007ff7f6358c08 (Unity) GUIView::ProcessRetainedMode
0x00007ff7f6923e9e (Unity) GUIView::OnInputEvent
0x00007ff7f6358b53 (Unity) GUIView::ProcessInputEventFromAPI
0x00007ff7f6358a28 (Unity) GUIView::ProcessInputEvent
0x00007ff7f6924cce (Unity) GUIView::ProcessEventMessages
0x00007ff7f691ea55 (Unity) GUIView::GUIViewWndProc
0x00007ffd37d8e858 (USER32) CallWindowProcW
0x00007ffd37d8e299 (USER32) DispatchMessageW
0x00007ff7f68f7793 (Unity) MainMessageLoop
0x00007ff7f68fd170 (Unity) WinMain
0x00007ff7f7ce03ee (Unity) __scrt_common_main_seh
0x00007ffd37f37344 (KERNEL32) BaseThreadInitThunk
0x00007ffd392226b1 (ntdll) RtlUserThreadStart
CommandInvokationFailure: Gradle build failed. 
C:\Unity\2022.3.11f1\Editor\Data\PlaybackEngines\AndroidPlayer\OpenJDK\bin\java.exe -classpath "C:\Unity\2022.3.11f1\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\gradle\lib\gradle-launcher-7.2.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx4096m" "assembleRelease"

Environment Variables:
OculusBase = D:\Oculus\
USERDOMAIN = DESKTOP-VNVQ48I
ProgramFiles = C:\Program Files
TMP = C:\Users\HP\AppData\Local\Temp
ChocolateyLastPathUpdate = 132969082540833793
PROCESSOR_ARCHITECTURE = AMD64
HEAP_CLIENT_TOKEN_STAGING = 3786794399
PROCESSOR_REVISION = 5000
OS = Windows_NT
CHROME_CRASHPAD_PIPE_NAME = \\.\pipe\crashpad_30284_CEEGRZHRJNWKOZJB
PROCESSOR_IDENTIFIER = AMD64 Family 25 Model 80 Stepping 0, AuthenticAMD
AMPLITUDE_API_KEY = 28f3cae0b33b8b3702120c9ed1a935aa
USERPROFILE = C:\Users\HP
JAVA_HOME = C:\Unity\2022.3.11f1\Editor\Data\PlaybackEngines\AndroidPlayer\OpenJDK
CommonProgramFiles = C:\Program Files\Common Files
DriverData = C:\Windows\System32\Drivers\DriverData
ComSpec = C:\Windows\system32\cmd.exe
LAUNCH_DARKLY_CLIENT_TOKEN = 60a7e30fafc7e60e33446283
PSModulePath = C:\Program Files\WindowsPowerShell\Modules;C:\Windows\system32\WindowsPowerShell\v1.0\Modules
ANDROID_NDK_ROOT = C:\Unity\2022.3.11f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK
SystemRoot = C:\Windows
HEAP_CLIENT_TOKEN = 1717415662
NUMBER_OF_PROCESSORS = 12
WOOTRIC_CLIENT_TOKEN = NPS-aa8be4c3
JAVA_TOOL_OPTIONS = -Dfile.encoding=UTF-8
DEBUG_ENV_VAR = UnityHub
ProgramW6432 = C:\Program Files
FPS_BROWSER_APP_PROFILE_STRING = Internet Explorer
HOMEDRIVE = C:
TEMP = C:\Users\HP\AppData\Local\Temp
Path = C:\Program Files (x86)\Common Files\Oracle\Java\javapath;D:\Oculus\Support\oculus-runtime;C:\Python310\Scripts\;C:\Python310\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program Files\Microsoft VS Code\bin;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\PuTTY\;C:\Program Files\nodejs\;C:\ProgramData\chocolatey\bin;C:\Program Files\dotnet\;C:\Program Files\Git\cmd;C:\Users\HP\AppData\Local\Microsoft\WindowsApps;C:\Users\HP\AppData\Roaming\npm;\msys64\mingw64\bin;C:\Users\HP\.dotnet\tools;C:\Windows\Microsoft.NET\Framework\v4.0.30319;C:\Users\HP\AppData\Local\GitHubDesktop\bin
USERNAME = HP
COMPUTERNAME = DESKTOP-VNVQ48I
BURST_ANDROID_MIN_API_LEVEL = 22
PATHEXT = .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.PY;.PYW
SystemDrive = C:
ALLUSERSPROFILE = C:\ProgramData
SENTRY_ACCESS_TOKEN = 3df78d9e53f8456aa90fbae044ce1a6261421ab1d0014674bc2e933477289017
ChocolateyInstall = C:\ProgramData\chocolatey
__COMPAT_LAYER = DetectorsAppHealth
FPS_BROWSER_USER_PROFILE_STRING = Default
windir = C:\Windows
AMPLITUDE_API_KEY_STAGING = 83ee04fccc67e4fcc7dd527c4c6f1e21
PUBLIC = C:\Users\Public
CommonProgramFiles(x86) = C:\Program Files (x86)\Common Files
APPDATA = C:\Users\HP\AppData\Roaming
OneDrive = C:\Users\HP\OneDrive
PROCESSOR_LEVEL = 25
CommonProgramW6432 = C:\Program Files\Common Files
ProgramFiles(x86) = C:\Program Files (x86)
NVIDIAWHITELISTED = 0x01
SESSIONNAME = Console
LOGONSERVER = \\DESKTOP-VNVQ48I
LOCALAPPDATA = C:\Users\HP\AppData\Local
HOMEPATH = \Users\HP
LAUNCH_DARKLY_CLIENT_TOKEN_STAGING = 60a7e30fafc7e60e33446282
SHIM_MCCOMPAT = 0x810000001
USERDOMAIN_ROAMINGPROFILE = DESKTOP-VNVQ48I
ProgramData = C:\ProgramData
ORIGINAL_XDG_CURRENT_DESKTOP = undefined


stderr[
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
C:\Users\HP\Desktop\code\unity\Fruit Catcher\Library\Bee\Android\Prj\Mono2x\Gradle\unityLibrary\src\main\java\com\unity\androidnotifications\UnityNotificationManager.java:165: error: cannot find symbol
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU)
                                                        ^
  symbol:   variable TIRAMISU
  location: class VERSION_CODES
C:\Users\HP\Desktop\code\unity\Fruit Catcher\Library\Bee\Android\Prj\Mono2x\Gradle\unityLibrary\src\main\java\com\unity\androidnotifications\UnityNotificationManager.java:166: error: cannot find symbol
            permissionGranted = mContext.checkCallingOrSelfPermission(Manifest.permission.POST_NOTIFICATIONS) == PackageManager.PERMISSION_GRANTED;
                                                                                         ^
  symbol:   variable POST_NOTIFICATIONS
  location: class permission
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
2 errors
FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':unityLibrary:compileReleaseJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 5s
]
stdout[
> Task :launcher:preBuild UP-TO-DATE
> Task :unityLibrary:preBuild UP-TO-DATE
> Task :launcher:preReleaseBuild UP-TO-DATE
> Task :unityLibrary:preReleaseBuild UP-TO-DATE
> Task :unityLibrary:compileReleaseAidl NO-SOURCE
> Task :launcher:generateReleaseBuildConfig
> Task :launcher:compileReleaseAidl NO-SOURCE
> Task :launcher:generateReleaseResValues
> Task :launcher:javaPreCompileRelease
> Task :launcher:createReleaseCompatibleScreenManifests
> Task :launcher:extractDeepLinksRelease
> Task :unityLibrary:mergeReleaseJniLibFolders
> Task :launcher:extractProguardFiles
> Task :launcher:mergeReleaseJniLibFolders
> Task :unityLibrary:compileReleaseRenderscript NO-SOURCE
> Task :unityLibrary:generateReleaseBuildConfig
> Task :unityLibrary:generateReleaseResValues
> Task :unityLibrary:generateReleaseResources
> Task :launcher:checkReleaseDuplicateClasses
> Task :launcher:mergeReleaseShaders
> Task :launcher:compileReleaseShaders NO-SOURCE
> Task :launcher:generateReleaseAssets UP-TO-DATE
> Task :launcher:processReleaseJavaRes NO-SOURCE
> Task :launcher:collectReleaseDependencies
> Task :unityLibrary:packageReleaseResources
> Task :unityLibrary:mergeReleaseNativeLibs
> Task :launcher:sdkReleaseDependencyData
> Task :unityLibrary:parseReleaseLocalResources
> Task :launcher:validateSigningRelease
> Task :launcher:writeReleaseAppMetadata
> Task :launcher:writeReleaseSigningConfigVersions
> Task :unityLibrary:stripReleaseDebugSymbols
> Task :unityLibrary:javaPreCompileRelease
> Task :unityLibrary:mergeReleaseShaders
> Task :unityLibrary:compileReleaseShaders NO-SOURCE
> Task :unityLibrary:generateReleaseAssets UP-TO-DATE
> Task :unityLibrary:processReleaseManifest
> Task :unityLibrary:copyReleaseJniLibsProjectAndLocalJars
> Task :unityLibrary:packageReleaseAssets
> Task :unityLibrary:packageReleaseRenderscript NO-SOURCE
> Task :unityLibrary:prepareLintJarForPublish
> Task :unityLibrary:prepareReleaseArtProfile
> Task :unityLibrary:processReleaseJavaRes
> Task :unityLibrary:writeReleaseAarMetadata
> Task :unityLibrary:extractDeepLinksRelease
> Task :unityLibrary:compileReleaseLibraryResources
> Task :unityLibrary:writeReleaseLintModelMetadata
> Task :unityLibrary:bundleLibResRelease
> Task :unityLibrary:copyReleaseJniLibsProjectOnly
> Task :unityLibrary:generateReleaseRFile
> Task :launcher:mergeReleaseAssets
> Task :launcher:compileReleaseRenderscript NO-SOURCE
> Task :launcher:generateReleaseResources
> Task :launcher:checkReleaseAarMetadata
> Task :unityLibrary:mergeReleaseJavaResource
> Task :launcher:mergeReleaseResources
> Task :unityLibrary:extractReleaseAnnotations
> Task :launcher:processReleaseMainManifest
> Task :launcher:processReleaseManifest
> Task :launcher:mergeReleaseArtProfile
> Task :launcher:processReleaseManifestForPackage
> Task :launcher:mergeReleaseNativeLibs

> Task :unityLibrary:compileReleaseJavaWithJavac FAILED

> Task :launcher:stripReleaseDebugSymbols
> Task :launcher:compressReleaseAssets
> Task :launcher:desugarReleaseFileDependencies
> Task :launcher:processReleaseResources
51 actionable tasks: 51 executed
]
exit code: 1
UnityEditor.Android.Command.WaitForProgramToRun (UnityEditor.Utils.Program p, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <d10267f7623440f4993bb84654a34a85>:0)
UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <d10267f7623440f4993bb84654a34a85>:0)
UnityEditor.Android.Command.Run (System.String command, System.String args, System.String workingdir, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <d10267f7623440f4993bb84654a34a85>:0)
UnityEditor.Android.AndroidJavaTools.RunJava (System.String args, System.String workingdir, System.Action`1[T] progress, System.String error) (at <d10267f7623440f4993bb84654a34a85>:0)
UnityEditor.Android.GradleWrapper.Run (UnityEditor.Android.AndroidJavaTools javaTools, Unity.Android.Gradle.AndroidGradle androidGradle, System.String workingdir, System.String task, System.Action`1[T] progress) (at <d10267f7623440f4993bb84654a34a85>:0)
Rethrow as GradleInvokationException: Gradle build failed
UnityEditor.Android.GradleWrapper.Run (UnityEditor.Android.AndroidJavaTools javaTools, Unity.Android.Gradle.AndroidGradle androidGradle, System.String workingdir, System.String task, System.Action`1[T] progress) (at <d10267f7623440f4993bb84654a34a85>:0)
UnityEditor.Android.PostProcessor.Tasks.BuildGradleProject.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <d10267f7623440f4993bb84654a34a85>:0)
UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <d10267f7623440f4993bb84654a34a85>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)

I am at my wit’s end today. I thank anyone who helps me in advance.

Ensure you have the latest SDK’s installed. Then in your PlayerSettings, ensure that you change your scripting backend to IL2CPP and check both ARMv7 and ARM64 and lastly set your target API to the highest available. That Should revolve your build issue.

Oh and lastly, it seems you are trying to build to android. In your BuildSettings ensure the unity sign is next to android. otherwise just click android and switch platform.