Hello,
I’m new to Unity. Downloaded the personal edition 2022.3.9.f1, installed it over the hub. Launched without problems. Started a 2D mobile project template and Switched to Android from build settings. Doing so asked me to download Android stuff through the hub. Successfully downloaded all the required stuff and restarted the application, loaded the project. It works in viewport as expected. When I want to build, these errors appear and I have no idea what am I doing wrong… Thanks for your help.
Best regards,
Atilla
Starting a Gradle Daemon, 2 incompatible and 2 stopped Daemons could not be reused, use --status for details
Exception while marshalling C:\Program Files\Unity\Hub\Editor\2022.3.9f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\build-tools\32.0.0\package.xml. Probably the SDK is read-only
Exception while marshalling C:\Program Files\Unity\Hub\Editor\2022.3.9f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platform-tools\package.xml. Probably the SDK is read-only
Exception while marshalling C:\Program Files\Unity\Hub\Editor\2022.3.9f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platforms\android-31\package.xml. Probably the SDK is read-only
Exception while marshalling C:\Program Files\Unity\Hub\Editor\2022.3.9f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platforms\android-32\package.xml. Probably the SDK is read-only
Exception while marshalling C:\Program Files\Unity\Hub\Editor\2022.3.9f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\tools\package.xml. Probably the SDK is read-only
Exception while marshalling C:\Program Files\Unity\Hub\Editor\2022.3.9f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\build-tools\32.0.0\package.xml. Probably the SDK is read-only
Exception while marshalling C:\Program Files\Unity\Hub\Editor\2022.3.9f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platform-tools\package.xml. Probably the SDK is read-only
Exception while marshalling C:\Program Files\Unity\Hub\Editor\2022.3.9f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platforms\android-31\package.xml. Probably the SDK is read-only
Exception while marshalling C:\Program Files\Unity\Hub\Editor\2022.3.9f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platforms\android-32\package.xml. Probably the SDK is read-only
Exception while marshalling C:\Program Files\Unity\Hub\Editor\2022.3.9f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\tools\package.xml. Probably the SDK is read-only
Task :unityLibrary:preBuild UP-TO-DATE
Task :launcher:preBuild UP-TO-DATE
Task :unityLibrary:preReleaseBuild UP-TO-DATE
Task :launcher: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 :launcher:extractProguardFiles
Task :launcher:mergeReleaseJniLibFolders
Task :unityLibrary:mergeReleaseJniLibFolders
Task :unityLibrary:compileReleaseRenderscript NO-SOURCE
Task :unityLibrary:generateReleaseBuildConfig
Task :unityLibrary:generateReleaseResValues
Task :unityLibrary:generateReleaseResources
Task :unityLibrary:mergeReleaseNativeLibs
Task :unityLibrary:packageReleaseResources
Task :unityLibrary:stripReleaseDebugSymbols
Task :unityLibrary:javaPreCompileRelease
Task :unityLibrary:mergeReleaseShaders
Task :unityLibrary:copyReleaseJniLibsProjectAndLocalJars
Task :unityLibrary:compileReleaseShaders NO-SOURCE
Task :unityLibrary:generateReleaseAssets UP-TO-DATE
Task :unityLibrary:parseReleaseLocalResources
Task :launcher:checkReleaseDuplicateClasses
Task :unityLibrary:processReleaseManifest
Task :unityLibrary:packageReleaseAssets
Task :unityLibrary:packageReleaseRenderscript NO-SOURCE
Task :unityLibrary:prepareReleaseArtProfile
Task :unityLibrary:prepareLintJarForPublish
Task :unityLibrary:processReleaseJavaRes
Task :unityLibrary:extractDeepLinksRelease
Task :unityLibrary:writeReleaseAarMetadata
Task :unityLibrary:compileReleaseLibraryResources
Task :unityLibrary:writeReleaseLintModelMetadata
Task :unityLibrary:bundleLibResRelease
Task :launcher:compileReleaseRenderscript NO-SOURCE
Task :unityLibrary:copyReleaseJniLibsProjectOnly
Task :launcher:generateReleaseResources
Task :unityLibrary:mergeReleaseJavaResource
Task :launcher:checkReleaseAarMetadata
Task :launcher:processReleaseMainManifest
Task :launcher:mergeReleaseResources
Task :launcher:processReleaseManifest
Task :launcher:mergeReleaseShaders
Task :launcher:compileReleaseShaders NO-SOURCE
Task :launcher:generateReleaseAssets UP-TO-DATE
Task :unityLibrary:generateReleaseRFile
Task :launcher:mergeReleaseNativeLibs
Task :launcher:mergeReleaseAssets
Task :launcher:stripReleaseDebugSymbols
Task :unityLibrary:extractReleaseAnnotations
Task :launcher:processReleaseManifestForPackage
Task :launcher:processReleaseJavaRes NO-SOURCE
Task :launcher:mergeReleaseJavaResource
Task :launcher:extractReleaseNativeSymbolTables
Task :launcher:collectReleaseDependencies
Task :launcher:mergeReleaseNativeDebugMetadata
Task :launcher:compressReleaseAssets
Task :launcher:processReleaseResources
Task :launcher:sdkReleaseDependencyData
Task :launcher:validateSigningRelease
Task :launcher:writeReleaseAppMetadata
Task :launcher:writeReleaseSigningConfigVersions
Task :launcher:mergeReleaseArtProfile
Task :launcher:optimizeReleaseResources
Task :launcher:desugarReleaseFileDependencies
Task :unityLibrary:compileReleaseJavaWithJavac
Task :unityLibrary:compileReleaseJavaWithJavac FAILED
Task :launcher:mergeExtDexRelease
56 actionable tasks: 56 executed
0x00007ff7b368332d (Unity) StackWalker::GetCurrentCallstack
0x00007ff7b36882d9 (Unity) StackWalker::ShowCallstack
0x00007ff7b4657be1 (Unity) GetStacktrace
0x00007ff7b4d16072 (Unity) DebugStringToFile
0x00007ff7b25acae6 (Unity) DebugLogHandler_CUSTOM_Internal_Log
0x0000028c84226ee3 (Mono JIT Code) (wrapper managed-to-native) UnityEngine.DebugLogHandler:Internal_Log (UnityEngine.LogType,UnityEngine.LogOption,string,UnityEngine.Object)
0x0000028c84226dfb (Mono JIT Code) UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[ ])
0x0000028c84226b40 (Mono JIT Code) UnityEngine.Logger:Log (UnityEngine.LogType,object)
0x0000028c84226a05 (Mono JIT Code) UnityEngine.Debug:LogError (object)
0x0000028c84226523 (Mono JIT Code) UnityEditor.Android.GradleInvokationException:ParseAndShowException ()
0x0000028be2c57ab3 (Mono JIT Code) UnityEditor.Android.PostProcessor.PostProcessRunner:RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext)
0x0000028c841eed83 (Mono JIT Code) UnityEditor.Android.PostProcessAndroidPlayer:PostProcess (UnityEditor.Modules.BuildPostProcessArgs,AndroidPlayerBuildProgram.Data.AndroidPlayerBuildProgramOutput)
0x0000028c84196073 (Mono JIT Code) UnityEditor.Android.AndroidBuildPostprocessor:PostProcess (UnityEditor.Modules.BuildPostProcessArgs,UnityEditor.BuildProperties&)
0x0000028c84195741 (Mono JIT Code) UnityEditor.PostprocessBuildPlayer:Postprocess (UnityEditor.BuildTargetGroup,UnityEditor.BuildTarget,int,string,string,string,int,int,UnityEditor.BuildOptions,UnityEditor.RuntimeClassRegistry,UnityEditor.Build.Reporting.BuildReport)
0x0000028c84195ab5 (Mono JIT Code) (wrapper runtime-invoke) :runtime_invoke_void_int_int_int_object_object_object_int_int_int_object_object (object,intptr,intptr,intptr)
0x00007ff93c80e274 (mono-2.0-bdwgc) mono_jit_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/mini/mini-runtime.c:3445)
0x00007ff93c74eb74 (mono-2.0-bdwgc) do_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/metadata/object.c:3066)
0x00007ff93c74ed0c (mono-2.0-bdwgc) mono_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/metadata/object.c:3113)
0x00007ff7b359a824 (Unity) scripting_method_invoke
0x00007ff7b3578944 (Unity) ScriptingInvocation::Invoke
0x00007ff7b508bcb1 (Unity) CallMono
0x00007ff7b5094b67 (Unity) PostprocessPlayer
0x00007ff7b508ef53 (Unity) DoBuildPlayer_PostBuild
0x00007ff7b508d04e (Unity) DoBuildPlayer
0x00007ff7b5080875 (Unity) BuildPlayer
0x00007ff7b2e166cf (Unity) BuildPipeline::BuildPlayerInternalNoCheck
0x00007ff7b2b6573c (Unity) BuildPipeline_CUSTOM_BuildPlayerInternalNoCheck
0x0000028be279b8a7 (Mono JIT Code) (wrapper managed-to-native) UnityEditor.BuildPipeline:BuildPlayerInternalNoCheck (string[ ],string,string,UnityEditor.BuildTargetGroup,UnityEditor.BuildTarget,int,UnityEditor.BuildOptions,string[ ],bool)
0x0000028be279b043 (Mono JIT Code) UnityEditor.BuildPlayerWindow/DefaultBuildMethods:BuildPlayer (UnityEditor.BuildPlayerOptions)
0x0000028be27973eb (Mono JIT Code) UnityEditor.BuildPlayerWindow:CallBuildMethods (bool,UnityEditor.BuildOptions)
0x0000028c7def3f83 (Mono JIT Code) UnityEditor.BuildPlayerWindow:GUIBuildButtons (UnityEditor.Modules.IBuildWindowExtension,bool,bool,bool,UnityEditor.Build.BuildPlatform,UnityEditor.Modules.IBuildPostprocessor)
0x0000028c7ded221b (Mono JIT Code) UnityEditor.BuildPlayerWindow:ShowBuildTargetSettings ()
0x0000028c7dec0e1b (Mono JIT Code) UnityEditor.BuildPlayerWindow:OnGUI ()
0x0000028c4df869f2 (Mono JIT Code) UnityEditor.HostView:InvokeOnGUI (UnityEngine.Rect)
0x0000028c4df867d3 (Mono JIT Code) UnityEditor.DockArea:smile:rawView (UnityEngine.Rect)
0x0000028c4df729e3 (Mono JIT Code) UnityEditor.DockArea:OldOnGUI ()
0x0000028c4de8bd1f (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:smile:oOnGUI (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect,bool,UnityEngine.Rect,System.Action,bool)
0x0000028c4df5fc5b (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect,System.Action,bool)
0x0000028c7cd9489b (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,System.Action,bool)
0x0000028c7cd94703 (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,bool)
0x0000028c7cd9424b (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:SendEventToIMGUIRaw (UnityEngine.UIElements.EventBase,bool,bool)
0x0000028c7cd94133 (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:SendEventToIMGUI (UnityEngine.UIElements.EventBase,bool,bool)
0x0000028c49a7f193 (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:ProcessEvent (UnityEngine.UIElements.EventBase)
0x0000028c49a7ecf3 (Mono JIT Code) UnityEngine.UIElements.CallbackEventHandler:HandleEvent (UnityEngine.UIElements.EventBase)
0x0000028c49a7ea2f (Mono JIT Code) UnityEngine.UIElements.CallbackEventHandler:HandleEventAtCurrentTargetAndPhase (UnityEngine.UIElements.EventBase)
0x0000028c49a7e763 (Mono JIT Code) UnityEngine.UIElements.CallbackEventHandler:HandleEventAtTargetPhase (UnityEngine.UIElements.EventBase)
0x0000028c7cd911c3 (Mono JIT Code) UnityEngine.UIElements.MouseCaptureDispatchingStrategy:smile:ispatchEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel)
0x0000028c4cb7d2ce (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:ApplyDispatchingStrategies (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel,bool)
0x0000028c4cb7cb9b (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:ProcessEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel)
0x0000028c49a686d3 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:ProcessEventQueue ()
0x0000028c49a68523 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:OpenGate ()
0x0000028c49a6845b (Mono JIT Code) UnityEngine.UIElements.EventDispatcherGate:smile:ispose ()
0x0000028c4cb7d073 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:ProcessEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel)
0x0000028c4cb7c473 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:smile:ispatch (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel,UnityEngine.UIElements.DispatchMode)
0x0000028c4cb7c2cb (Mono JIT Code) UnityEngine.UIElements.BaseVisualElementPanel:SendEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.DispatchMode)
0x0000028c4e44e7b3 (Mono JIT Code) UnityEngine.UIElements.UIElementsUtility:smile:oDispatch (UnityEngine.UIElements.BaseVisualElementPanel)
0x0000028c4e44e0a3 (Mono JIT Code) UnityEngine.UIElements.UIElementsUtility:UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (int,intptr,bool&)
0x0000028c4e44de5f (Mono JIT Code) UnityEngine.UIElements.UIEventRegistration:ProcessEvent (int,intptr)
0x0000028c4e44dd7b (Mono JIT Code) UnityEngine.UIElements.UIEventRegistration/<>c:<.cctor>b__1_2 (int,intptr)
0x0000028c4e44dbcd (Mono JIT Code) UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
0x0000028c4e44dc86 (Mono JIT Code) (wrapper runtime-invoke) :runtime_invoke_void_int_intptr_intptr& (object,intptr,intptr,intptr)
0x00007ff93c80e274 (mono-2.0-bdwgc) mono_jit_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/mini/mini-runtime.c:3445)
0x00007ff93c74eb74 (mono-2.0-bdwgc) do_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/metadata/object.c:3066)
0x00007ff93c74ed0c (mono-2.0-bdwgc) mono_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/metadata/object.c:3113)
0x00007ff7b359a824 (Unity) scripting_method_invoke
0x00007ff7b3578944 (Unity) ScriptingInvocation::Invoke
0x00007ff7b3573595 (Unity) ScriptingInvocation::Invoke
0x00007ff7b36cddda (Unity) Scripting::UnityEngine::GUIUtilityProxy::ProcessEvent
0x00007ff7b40c0c28 (Unity) GUIView::ProcessRetainedMode
0x00007ff7b468ab8e (Unity) GUIView::OnInputEvent
0x00007ff7b40c0b73 (Unity) GUIView::ProcessInputEventFromAPI
0x00007ff7b40c0a48 (Unity) GUIView::ProcessInputEvent
0x00007ff7b468b9be (Unity) GUIView::ProcessEventMessages
0x00007ff7b4685745 (Unity) GUIView::GUIViewWndProc
0x00007ffa0d2de858 (USER32) CallWindowProcW
0x00007ffa0d2de299 (USER32) DispatchMessageW
0x00007ff7b465e3a3 (Unity) MainMessageLoop
0x00007ff7b4663d80 (Unity) WinMain
0x00007ff7b5a47fee (Unity) __scrt_common_main_seh
0x00007ffa0e537344 (KERNEL32) BaseThreadInitThunk
0x00007ffa0f2c26b1 (ntdll) RtlUserThreadStart
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
C:\Users\Tom\My project\Library\Bee\Android\Prj\Mono2x\Gradle\unityLibrary\src\main\java\com\unity\androidnotifications\UnityNotificationManager.java:164: error: cannot find symbol
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU)
^
symbol: variable TIRAMISU
location: class VERSION_CODES
C:\Users\Tom\My project\Library\Bee\Android\Prj\Mono2x\Gradle\unityLibrary\src\main\java\com\unity\androidnotifications\UnityNotificationManager.java:165: error: cannot find symbol
permissionGranted = mContext.checkCallingOrSelfPermission(Manifest.permission.POST_NOTIFICATIONS) == PackageManager.PERMISSION_GRANTED;
^
symbol: variable POST_NOTIFICATIONS
location: class permission
Note: C:\Users\Tom\My project\Library\Bee\Android\Prj\Mono2x\Gradle\unityLibrary\src\main\java\com\unity3d\player\UnityPlayerActivity.java uses or overrides 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 18s
0x00007ff7b368332d (Unity) StackWalker::GetCurrentCallstack
0x00007ff7b36882d9 (Unity) StackWalker::ShowCallstack
0x00007ff7b4657be1 (Unity) GetStacktrace
0x00007ff7b4d16072 (Unity) DebugStringToFile
0x00007ff7b25acae6 (Unity) DebugLogHandler_CUSTOM_Internal_Log
0x0000028c84226ee3 (Mono JIT Code) (wrapper managed-to-native) UnityEngine.DebugLogHandler:Internal_Log (UnityEngine.LogType,UnityEngine.LogOption,string,UnityEngine.Object)
0x0000028c84226dfb (Mono JIT Code) UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[ ])
0x0000028c84226b40 (Mono JIT Code) UnityEngine.Logger:Log (UnityEngine.LogType,object)
0x0000028c84226a05 (Mono JIT Code) UnityEngine.Debug:LogError (object)
0x0000028c84226523 (Mono JIT Code) UnityEditor.Android.GradleInvokationException:ParseAndShowException ()
0x0000028be2c57ab3 (Mono JIT Code) UnityEditor.Android.PostProcessor.PostProcessRunner:RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext)
0x0000028c841eed83 (Mono JIT Code) UnityEditor.Android.PostProcessAndroidPlayer:PostProcess (UnityEditor.Modules.BuildPostProcessArgs,AndroidPlayerBuildProgram.Data.AndroidPlayerBuildProgramOutput)
0x0000028c84196073 (Mono JIT Code) UnityEditor.Android.AndroidBuildPostprocessor:PostProcess (UnityEditor.Modules.BuildPostProcessArgs,UnityEditor.BuildProperties&)
0x0000028c84195741 (Mono JIT Code) UnityEditor.PostprocessBuildPlayer:Postprocess (UnityEditor.BuildTargetGroup,UnityEditor.BuildTarget,int,string,string,string,int,int,UnityEditor.BuildOptions,UnityEditor.RuntimeClassRegistry,UnityEditor.Build.Reporting.BuildReport)
0x0000028c84195ab5 (Mono JIT Code) (wrapper runtime-invoke) :runtime_invoke_void_int_int_int_object_object_object_int_int_int_object_object (object,intptr,intptr,intptr)
0x00007ff93c80e274 (mono-2.0-bdwgc) mono_jit_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/mini/mini-runtime.c:3445)
0x00007ff93c74eb74 (mono-2.0-bdwgc) do_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/metadata/object.c:3066)
0x00007ff93c74ed0c (mono-2.0-bdwgc) mono_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/metadata/object.c:3113)
0x00007ff7b359a824 (Unity) scripting_method_invoke
0x00007ff7b3578944 (Unity) ScriptingInvocation::Invoke
0x00007ff7b508bcb1 (Unity) CallMono
0x00007ff7b5094b67 (Unity) PostprocessPlayer
0x00007ff7b508ef53 (Unity) DoBuildPlayer_PostBuild
0x00007ff7b508d04e (Unity) DoBuildPlayer
0x00007ff7b5080875 (Unity) BuildPlayer
0x00007ff7b2e166cf (Unity) BuildPipeline::BuildPlayerInternalNoCheck
0x00007ff7b2b6573c (Unity) BuildPipeline_CUSTOM_BuildPlayerInternalNoCheck
0x0000028be279b8a7 (Mono JIT Code) (wrapper managed-to-native) UnityEditor.BuildPipeline:BuildPlayerInternalNoCheck (string[ ],string,string,UnityEditor.BuildTargetGroup,UnityEditor.BuildTarget,int,UnityEditor.BuildOptions,string[ ],bool)
0x0000028be279b043 (Mono JIT Code) UnityEditor.BuildPlayerWindow/DefaultBuildMethods:BuildPlayer (UnityEditor.BuildPlayerOptions)
0x0000028be27973eb (Mono JIT Code) UnityEditor.BuildPlayerWindow:CallBuildMethods (bool,UnityEditor.BuildOptions)
0x0000028c7def3f83 (Mono JIT Code) UnityEditor.BuildPlayerWindow:GUIBuildButtons (UnityEditor.Modules.IBuildWindowExtension,bool,bool,bool,UnityEditor.Build.BuildPlatform,UnityEditor.Modules.IBuildPostprocessor)
0x0000028c7ded221b (Mono JIT Code) UnityEditor.BuildPlayerWindow:ShowBuildTargetSettings ()
0x0000028c7dec0e1b (Mono JIT Code) UnityEditor.BuildPlayerWindow:OnGUI ()
0x0000028c4df869f2 (Mono JIT Code) UnityEditor.HostView:InvokeOnGUI (UnityEngine.Rect)
0x0000028c4df867d3 (Mono JIT Code) UnityEditor.DockArea:smile:rawView (UnityEngine.Rect)
0x0000028c4df729e3 (Mono JIT Code) UnityEditor.DockArea:OldOnGUI ()
0x0000028c4de8bd1f (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:smile:oOnGUI (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect,bool,UnityEngine.Rect,System.Action,bool)
0x0000028c4df5fc5b (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect,System.Action,bool)
0x0000028c7cd9489b (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,System.Action,bool)
0x0000028c7cd94703 (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,bool)
0x0000028c7cd9424b (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:SendEventToIMGUIRaw (UnityEngine.UIElements.EventBase,bool,bool)
0x0000028c7cd94133 (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:SendEventToIMGUI (UnityEngine.UIElements.EventBase,bool,bool)
0x0000028c49a7f193 (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:ProcessEvent (UnityEngine.UIElements.EventBase)
0x0000028c49a7ecf3 (Mono JIT Code) UnityEngine.UIElements.CallbackEventHandler:HandleEvent (UnityEngine.UIElements.EventBase)
0x0000028c49a7ea2f (Mono JIT Code) UnityEngine.UIElements.CallbackEventHandler:HandleEventAtCurrentTargetAndPhase (UnityEngine.UIElements.EventBase)
0x0000028c49a7e763 (Mono JIT Code) UnityEngine.UIElements.CallbackEventHandler:HandleEventAtTargetPhase (UnityEngine.UIElements.EventBase)
0x0000028c7cd911c3 (Mono JIT Code) UnityEngine.UIElements.MouseCaptureDispatchingStrategy:smile:ispatchEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel)
0x0000028c4cb7d2ce (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:ApplyDispatchingStrategies (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel,bool)
0x0000028c4cb7cb9b (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:ProcessEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel)
0x0000028c49a686d3 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:ProcessEventQueue ()
0x0000028c49a68523 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:OpenGate ()
0x0000028c49a6845b (Mono JIT Code) UnityEngine.UIElements.EventDispatcherGate:smile:ispose ()
0x0000028c4cb7d073 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:ProcessEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel)
0x0000028c4cb7c473 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:smile:ispatch (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel,UnityEngine.UIElements.DispatchMode)
0x0000028c4cb7c2cb (Mono JIT Code) UnityEngine.UIElements.BaseVisualElementPanel:SendEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.DispatchMode)
0x0000028c4e44e7b3 (Mono JIT Code) UnityEngine.UIElements.UIElementsUtility:smile:oDispatch (UnityEngine.UIElements.BaseVisualElementPanel)
0x0000028c4e44e0a3 (Mono JIT Code) UnityEngine.UIElements.UIElementsUtility:UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (int,intptr,bool&)
0x0000028c4e44de5f (Mono JIT Code) UnityEngine.UIElements.UIEventRegistration:ProcessEvent (int,intptr)
0x0000028c4e44dd7b (Mono JIT Code) UnityEngine.UIElements.UIEventRegistration/<>c:<.cctor>b__1_2 (int,intptr)
0x0000028c4e44dbcd (Mono JIT Code) UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
0x0000028c4e44dc86 (Mono JIT Code) (wrapper runtime-invoke) :runtime_invoke_void_int_intptr_intptr& (object,intptr,intptr,intptr)
0x00007ff93c80e274 (mono-2.0-bdwgc) mono_jit_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/mini/mini-runtime.c:3445)
0x00007ff93c74eb74 (mono-2.0-bdwgc) do_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/metadata/object.c:3066)
0x00007ff93c74ed0c (mono-2.0-bdwgc) mono_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/metadata/object.c:3113)
0x00007ff7b359a824 (Unity) scripting_method_invoke
0x00007ff7b3578944 (Unity) ScriptingInvocation::Invoke
0x00007ff7b3573595 (Unity) ScriptingInvocation::Invoke
0x00007ff7b36cddda (Unity) Scripting::UnityEngine::GUIUtilityProxy::ProcessEvent
0x00007ff7b40c0c28 (Unity) GUIView::ProcessRetainedMode
0x00007ff7b468ab8e (Unity) GUIView::OnInputEvent
0x00007ff7b40c0b73 (Unity) GUIView::ProcessInputEventFromAPI
0x00007ff7b40c0a48 (Unity) GUIView::ProcessInputEvent
0x00007ff7b468b9be (Unity) GUIView::ProcessEventMessages
0x00007ff7b4685745 (Unity) GUIView::GUIViewWndProc
0x00007ffa0d2de858 (USER32) CallWindowProcW
0x00007ffa0d2de299 (USER32) DispatchMessageW
0x00007ff7b465e3a3 (Unity) MainMessageLoop
0x00007ff7b4663d80 (Unity) WinMain
0x00007ff7b5a47fee (Unity) __scrt_common_main_seh
0x00007ffa0e537344 (KERNEL32) BaseThreadInitThunk
0x00007ffa0f2c26b1 (ntdll) RtlUserThreadStart
CommandInvokationFailure: Gradle build failed.
C:\Program Files\Unity\Hub\Editor\2022.3.9f1\Editor\Data\PlaybackEngines\AndroidPlayer\OpenJDK\bin\java.exe -classpath “C:\Program Files\Unity\Hub\Editor\2022.3.9f1\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\gradle\lib\gradle-launcher-7.2.jar” org.gradle.launcher.GradleMain “-Dorg.gradle.jvmargs=-Xmx4096m” “assembleRelease”
Environment Variables:
ANDROID_NDK_ROOT = C:\Program Files\Unity\Hub\Editor\2022.3.9f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK
PROCESSOR_IDENTIFIER = Intel64 Family 6 Model 85 Stepping 4, GenuineIntel
JAVA_TOOL_OPTIONS = -Dfile.encoding=UTF-8
JAVA_HOME = C:\Program Files\Unity\Hub\Editor\2022.3.9f1\Editor\Data\PlaybackEngines\AndroidPlayer\OpenJDK
WOOTRIC_CLIENT_TOKEN = NPS-aa8be4c3
stderr[
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
C:\Users\Tom\My project\Library\Bee\Android\Prj\Mono2x\Gradle\unityLibrary\src\main\java\com\unity\androidnotifications\UnityNotificationManager.java:164: error: cannot find symbol
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU)
^
symbol: variable TIRAMISU
location: class VERSION_CODES
C:\Users\Tom\My project\Library\Bee\Android\Prj\Mono2x\Gradle\unityLibrary\src\main\java\com\unity\androidnotifications\UnityNotificationManager.java:165: error: cannot find symbol
permissionGranted = mContext.checkCallingOrSelfPermission(Manifest.permission.POST_NOTIFICATIONS) == PackageManager.PERMISSION_GRANTED;
^
symbol: variable POST_NOTIFICATIONS
location: class permission
Note: C:\Users\Tom\My project\Library\Bee\Android\Prj\Mono2x\Gradle\unityLibrary\src\main\java\com\unity3d\player\UnityPlayerActivity.java uses or overrides 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 18s
]
stdout[
Starting a Gradle Daemon, 2 incompatible and 2 stopped Daemons could not be reused, use --status for details
Exception while marshalling C:\Program Files\Unity\Hub\Editor\2022.3.9f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\build-tools\32.0.0\package.xml. Probably the SDK is read-only
Exception while marshalling C:\Program Files\Unity\Hub\Editor\2022.3.9f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platform-tools\package.xml. Probably the SDK is read-only
Exception while marshalling C:\Program Files\Unity\Hub\Editor\2022.3.9f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platforms\android-31\package.xml. Probably the SDK is read-only
Exception while marshalling C:\Program Files\Unity\Hub\Editor\2022.3.9f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platforms\android-32\package.xml. Probably the SDK is read-only
Exception while marshalling C:\Program Files\Unity\Hub\Editor\2022.3.9f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\tools\package.xml. Probably the SDK is read-only
Exception while marshalling C:\Program Files\Unity\Hub\Editor\2022.3.9f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\build-tools\32.0.0\package.xml. Probably the SDK is read-only
Exception while marshalling C:\Program Files\Unity\Hub\Editor\2022.3.9f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platform-tools\package.xml. Probably the SDK is read-only
Exception while marshalling C:\Program Files\Unity\Hub\Editor\2022.3.9f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platforms\android-31\package.xml. Probably the SDK is read-only
Exception while marshalling C:\Program Files\Unity\Hub\Editor\2022.3.9f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platforms\android-32\package.xml. Probably the SDK is read-only
Exception while marshalling C:\Program Files\Unity\Hub\Editor\2022.3.9f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\tools\package.xml. Probably the SDK is read-only
Task :unityLibrary:preBuild UP-TO-DATE
Task :launcher:preBuild UP-TO-DATE
Task :unityLibrary:preReleaseBuild UP-TO-DATE
Task :launcher: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 :launcher:extractProguardFiles
Task :launcher:mergeReleaseJniLibFolders
Task :unityLibrary:mergeReleaseJniLibFolders
Task :unityLibrary:compileReleaseRenderscript NO-SOURCE
Task :unityLibrary:generateReleaseBuildConfig
Task :unityLibrary:generateReleaseResValues
Task :unityLibrary:generateReleaseResources
Task :unityLibrary:mergeReleaseNativeLibs
Task :unityLibrary:packageReleaseResources
Task :unityLibrary:stripReleaseDebugSymbols
Task :unityLibrary:javaPreCompileRelease
Task :unityLibrary:mergeReleaseShaders
Task :unityLibrary:copyReleaseJniLibsProjectAndLocalJars
Task :unityLibrary:compileReleaseShaders NO-SOURCE
Task :unityLibrary:generateReleaseAssets UP-TO-DATE
Task :unityLibrary:parseReleaseLocalResources
Task :launcher:checkReleaseDuplicateClasses
Task :unityLibrary:processReleaseManifest
Task :unityLibrary:packageReleaseAssets
Task :unityLibrary:packageReleaseRenderscript NO-SOURCE
Task :unityLibrary:prepareReleaseArtProfile
Task :unityLibrary:prepareLintJarForPublish
Task :unityLibrary:processReleaseJavaRes
Task :unityLibrary:extractDeepLinksRelease
Task :unityLibrary:writeReleaseAarMetadata
Task :unityLibrary:compileReleaseLibraryResources
Task :unityLibrary:writeReleaseLintModelMetadata
Task :unityLibrary:bundleLibResRelease
Task :launcher:compileReleaseRenderscript NO-SOURCE
Task :unityLibrary:copyReleaseJniLibsProjectOnly
Task :launcher:generateReleaseResources
Task :unityLibrary:mergeReleaseJavaResource
Task :launcher:checkReleaseAarMetadata
Task :launcher:processReleaseMainManifest
Task :launcher:mergeReleaseResources
Task :launcher:processReleaseManifest
Task :launcher:mergeReleaseShaders
Task :launcher:compileReleaseShaders NO-SOURCE
Task :launcher:generateReleaseAssets UP-TO-DATE
Task :unityLibrary:generateReleaseRFile
Task :launcher:mergeReleaseNativeLibs
Task :launcher:mergeReleaseAssets
Task :launcher:stripReleaseDebugSymbols
Task :unityLibrary:extractReleaseAnnotations
Task :launcher:processReleaseManifestForPackage
Task :launcher:processReleaseJavaRes NO-SOURCE
Task :launcher:mergeReleaseJavaResource
Task :launcher:extractReleaseNativeSymbolTables
Task :launcher:collectReleaseDependencies
Task :launcher:mergeReleaseNativeDebugMetadata
Task :launcher:compressReleaseAssets
Task :launcher:processReleaseResources
Task :launcher:sdkReleaseDependencyData
Task :launcher:validateSigningRelease
Task :launcher:writeReleaseAppMetadata
Task :launcher:writeReleaseSigningConfigVersions
Task :launcher:mergeReleaseArtProfile
Task :launcher:optimizeReleaseResources
Task :launcher:desugarReleaseFileDependencies
Task :unityLibrary:compileReleaseJavaWithJavac
Task :unityLibrary:compileReleaseJavaWithJavac FAILED
Task :launcher:mergeExtDexRelease
56 actionable tasks: 56 executed
]
exit code: 1
UnityEditor.Android.Command.WaitForProgramToRun (UnityEditor.Utils.Program p, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <950249aad035483681d10b4c9c3c20d4>:0)
UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <950249aad035483681d10b4c9c3c20d4>:0)
UnityEditor.Android.Command.Run (System.String command, System.String args, System.String workingdir, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <950249aad035483681d10b4c9c3c20d4>:0)
UnityEditor.Android.AndroidJavaTools.RunJava (System.String args, System.String workingdir, System.Action1[T] progress, System.String error) (at <950249aad035483681d10b4c9c3c20d4>:0) UnityEditor.Android.GradleWrapper.Run (UnityEditor.Android.AndroidJavaTools javaTools, Unity.Android.Gradle.AndroidGradle androidGradle, System.String workingdir, System.String task, System.Action1[T] progress) (at <950249aad035483681d10b4c9c3c20d4>: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 <950249aad035483681d10b4c9c3c20d4>:0)
UnityEditor.Android.PostProcessor.Tasks.BuildGradleProject.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <950249aad035483681d10b4c9c3c20d4>:0)
UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <950249aad035483681d10b4c9c3c20d4>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)