I have the latest SDK platform tools, but it seems it can not be found or something.
I checked the solutions mostly on the internet like changing ‘obsolete’ value to false in the platform-tools/package.xml but this value was already false, so it does not work.
Hey! Which Unity version are you using?
I’m using Unity 2022.3.56f1, Gradle 7.5, and JDK-11 version. Target API is 35, and min API is 25.
The maximum supported Platform Toosl version in 2022.3.56f1
is 32.0.0
and Build Tools is 34.0.0
. Please, install the supported versions with either the Unity Hub, or manually with the SDK manager.
The supported versions for each tool can be found in the documentation:
I downloaded the correct versions, but error still occurs.
Build Tools →
Platform Tools →
Platform → (I also set the Target API to 34)
Error →
And external tools →
Looking at the error message, having a Platform Tools version of 0.0
means that Unity is probably failing to detect the version correctly. The reason for this might be because your SDK location is incorrect, or some other similar error with your setup.
Could you maybe share your Editor.log file when that error happens?
I checked the locations and those are correct. Here’s the log
</>
UnityException: SDK Platform Tools version 0.0 < 32.0.0.
UnityEditor.Android.PostProcessor.Tasks.CheckAndroidSDK.EnsureSDKComponentVersion (System.Version minVersion, UnityEditor.Android.PostProcessor.Tasks.CheckAndroidSDK+SDKComponentDetector detector) (at :0)
UnityEditor.Android.PostProcessor.Tasks.CheckAndroidSDK.EnsureSDKComponentVersion (System.Int32 minVersion, UnityEditor.Android.PostProcessor.Tasks.CheckAndroidSDK+SDKComponentDetector detector) (at :0)
UnityEditor.Android.PostProcessor.Tasks.CheckAndroidSDK.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at :0)
UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at :0)
UnityEditor.Android.PostProcessAndroidPlayer.PrepareForBuild (UnityEditor.BuildPlayerOptions buildPlayerOptions) (at :0)
UnityEditor.Android.AndroidBuildPostprocessor.PrepareForBuild (UnityEditor.BuildPlayerOptions buildOptions) (at :0)
UnityEditor.PostprocessBuildPlayer.PrepareForBuild (UnityEditor.BuildPlayerOptions buildOptions) (at :0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)
</>
Oh, I got it wrong, wait a second I’ll share the file.
EditorLog.txt (285.4 KB)
Could you go to this folder and share with me what you have installed in your SDK?
- Go to
C:\catch_the_flight_unity_sdk\cmdline-tools\6.0\bin\
- Run
sdkmanager.bat --list_installed
It should look something like this:
C:\catch_the_flight_unity_sdk\cmdline-tools\6.0\bin> sdkmanager.bat --list_installed
Path | Version | Description | Location
------- | ------- | ------- | -------
build-tools;34.0.0 | 34.0.0 | Android SDK Build-Tools 34 | build-tools\34.0.0
platform-tools | 32.0.0 | Android SDK Platform-Tools 32 | platform-tools
platforms;android-33 | 2 | Android SDK Platform 33, rev 2 | platforms\android-33
platforms;android-34 | 2 | Android SDK Platform 34, rev 2 | platforms\android-34
platforms;android-35 | 1 | Android SDK Platform 35 | platforms\android-35
tools | 26.1.1 | Android SDK Tools 26.1.1 | tools```
Hi, I have no 6.0 folder, there is just latest folder in the cmdline-tools, and when I run the command this is shown →
You must use cmdline-tools
version 6.0
, since it’s the only one compatible with JDK 11
and Unity 2022.3
.
Please, install cmdline-tools 6.0, delete the cmdline-tool/latest
and let me know if that fixes your issue.
Thanks!
Maybe try doing:
sdkmanager.bat --uninstall "build-tools;35.0.0"
If not, please try re-installing Unity Android SDK with Unity Hub, there is definitely a missmatch between the the versions required and the versions you have.
I already deleted it, but it didn’t affect that. I’ll try re-install tomorrow and let you know, thank you
Hi, I did re-install the editor, and the error persists here’s the log →
</>
Configure project :
Build was configured to prefer settings repositories over project repositories but repository ‘Google’ was added by build file ‘build.gradle’
Build was configured to prefer settings repositories over project repositories but repository ‘BintrayJCenter’ was added by build file ‘build.gradle’
Build was configured to prefer settings repositories over project repositories but repository ‘flatDir’ was added by build file ‘build.gradle’
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
You can use ‘–warning-mode all’ to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
0x00007ff67ffd36ad (Unity) StackWalker::GetCurrentCallstack
0x00007ff67ffd8789 (Unity) StackWalker::ShowCallstack
0x00007ff680fcc9e1 (Unity) GetStacktrace
0x00007ff681688dee (Unity) DebugStringToFile
0x00007ff67ef1e8f8 (Unity) DebugLogHandler_CUSTOM_Internal_Log
0x000001689a09745a (Mono JIT Code) (wrapper managed-to-native) UnityEngine.DebugLogHandler:Internal_Log (UnityEngine.LogType,UnityEngine.LogOption,string,UnityEngine.Object)
0x000001689a0972cb (Mono JIT Code) UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object)
0x000001689a09674e (Mono JIT Code) UnityEngine.Logger:Log (UnityEngine.LogType,object)
0x00000168a9669d1a (Mono JIT Code) UnityEngine.Debug:LogError (object)
0x00000168a9669523 (Mono JIT Code) UnityEditor.Android.GradleInvokationException:ParseAndShowException ()
0x000001689a23c54b (Mono JIT Code) UnityEditor.Android.PostProcessor.PostProcessRunner:RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext)
0x00000168a96279c3 (Mono JIT Code) UnityEditor.Android.PostProcessAndroidPlayer:PostProcess (UnityEditor.Modules.BuildPostProcessArgs,AndroidPlayerBuildProgram.Data.AndroidPlayerBuildProgramOutput)
0x00000168a955a713 (Mono JIT Code) UnityEditor.Android.AndroidBuildPostprocessor:PostProcess (UnityEditor.Modules.BuildPostProcessArgs,UnityEditor.BuildProperties&)
0x00000168a95597fd (Mono JIT Code) UnityEditor.PostprocessBuildPlayer:Postprocess (UnityEditor.BuildTargetGroup,UnityEditor.BuildTarget,int,string,string,string,int,int,UnityEditor.BuildOptions,UnityEditor.RuntimeClassRegistry,UnityEditor.Build.Reporting.BuildReport)
0x00000168a9559e8f (Mono JIT Code) (wrapper runtime-invoke) :runtime_invoke_void_int_int_int_object_object_object_int_int_int_object_object (object,intptr,intptr,intptr)
0x00007fff628f4b7e (mono-2.0-bdwgc) mono_jit_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/mini/mini-runtime.c:3445)
0x00007fff6282d204 (mono-2.0-bdwgc) do_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/metadata/object.c:3068)
0x00007fff6282d37c (mono-2.0-bdwgc) mono_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/metadata/object.c:3115)
0x00007ff67feebbf4 (Unity) scripting_method_invoke
0x00007ff67fec8514 (Unity) ScriptingInvocation::Invoke
0x00007ff6819fd1e1 (Unity) CallMono
0x00007ff681a0678d (Unity) PostprocessPlayer
0x00007ff681a01023 (Unity) DoBuildPlayer_PostBuild
0x00007ff6819ff13e (Unity) DoBuildPlayer
0x00007ff6819f2518 (Unity) BuildPlayer
0x00007ff67f7512cf (Unity) BuildPipeline::BuildPlayerInternalNoCheck
0x00007ff67f65516c (Unity) BuildPipeline_CUSTOM_BuildPlayerInternalNoCheck
0x0000016890b22908 (Mono JIT Code) (wrapper managed-to-native) UnityEditor.BuildPipeline:BuildPlayerInternalNoCheck (string,string,string,UnityEditor.BuildTargetGroup,UnityEditor.BuildTarget,int,UnityEditor.BuildOptions,string,bool)
0x0000016890b213b3 (Mono JIT Code) UnityEditor.BuildPlayerWindow/DefaultBuildMethods:BuildPlayer (UnityEditor.BuildPlayerOptions)
0x000001688b9a520b (Mono JIT Code) UnityEditor.BuildPlayerWindow:CallBuildMethods (bool,UnityEditor.BuildOptions)
0x000001688ba92a03 (Mono JIT Code) UnityEditor.BuildPlayerWindow:GUIBuildButtons (UnityEditor.Modules.IBuildWindowExtension,bool,bool,bool,UnityEditor.Build.BuildPlatform,UnityEditor.Modules.IBuildPostprocessor)
0x000001688ba36663 (Mono JIT Code) UnityEditor.BuildPlayerWindow:ShowBuildTargetSettings ()
0x000001688b9fbb93 (Mono JIT Code) UnityEditor.BuildPlayerWindow:OnGUI ()
0x00000167e60e750a (Mono JIT Code) UnityEditor.HostView:InvokeOnGUI (UnityEngine.Rect)
0x00000167e60e6f93 (Mono JIT Code) UnityEditor.DockArea:DrawView (UnityEngine.Rect)
0x00000167e5b6d6bb (Mono JIT Code) UnityEditor.DockArea:OldOnGUI ()
0x00000166b69196d1 (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:DoOnGUI (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect,bool,UnityEngine.Rect,System.Action,bool)
0x00000167e0356533 (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect,System.Action,bool)
0x00000167e614f6cb (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,System.Action,bool)
0x00000167e614f3a3 (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,bool)
0x000001686b37b61b (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:SendEventToIMGUIRaw (UnityEngine.UIElements.EventBase,bool,bool)
0x000001686b37b273 (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:SendEventToIMGUI (UnityEngine.UIElements.EventBase,bool,bool)
0x00000167b2cb2b43 (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:ProcessEvent (UnityEngine.UIElements.EventBase)
0x00000167b2cb1ba3 (Mono JIT Code) UnityEngine.UIElements.CallbackEventHandler:HandleEvent (UnityEngine.UIElements.EventBase)
0x00000167b2cb104c (Mono JIT Code) UnityEngine.UIElements.CallbackEventHandler:HandleEventAtCurrentTargetAndPhase (UnityEngine.UIElements.EventBase)
0x00000167b2cb051b (Mono JIT Code) UnityEngine.UIElements.CallbackEventHandler:HandleEventAtTargetPhase (UnityEngine.UIElements.EventBase)
0x000001686b373283 (Mono JIT Code) UnityEngine.UIElements.MouseCaptureDispatchingStrategy:DispatchEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel)
0x00000167b2cdea26 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:ApplyDispatchingStrategies (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel,bool)
0x00000167b2cdd1d3 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:ProcessEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel)
0x00000167b2ca27cb (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:ProcessEventQueue ()
0x00000167b2ca21b3 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:OpenGate ()
0x00000167b2ca1edb (Mono JIT Code) UnityEngine.UIElements.EventDispatcherGate:Dispose ()
0x00000167b2cde29b (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:ProcessEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel)
0x00000167b2ccfac3 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:Dispatch (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel,UnityEngine.UIElements.DispatchMode)
0x00000167b2ccf5cb (Mono JIT Code) UnityEngine.UIElements.BaseVisualElementPanel:SendEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.DispatchMode)
0x000001689d3068e3 (Mono JIT Code) UnityEngine.UIElements.UIElementsUtility:DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel)
0x000001689d305b23 (Mono JIT Code) UnityEngine.UIElements.UIElementsUtility:UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (int,intptr,bool&)
0x000001689d305544 (Mono JIT Code) UnityEngine.UIElements.UIEventRegistration:ProcessEvent (int,intptr)
0x000001689d30523b (Mono JIT Code) UnityEngine.UIElements.UIEventRegistration/<>c:<.cctor>b__1_2 (int,intptr)
0x000001689d303ae1 (Mono JIT Code) UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
0x000001689d303da6 (Mono JIT Code) (wrapper runtime-invoke) :runtime_invoke_void_int_intptr_intptr& (object,intptr,intptr,intptr)
0x00007fff628f4b7e (mono-2.0-bdwgc) mono_jit_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/mini/mini-runtime.c:3445)
0x00007fff6282d204 (mono-2.0-bdwgc) do_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/metadata/object.c:3068)
0x00007fff6282d37c (mono-2.0-bdwgc) mono_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/metadata/object.c:3115)
0x00007ff67feebbf4 (Unity) scripting_method_invoke
0x00007ff67fec8514 (Unity) ScriptingInvocation::Invoke
0x00007ff67fec3035 (Unity) ScriptingInvocation::Invoke
0x00007ff68001d91a (Unity) Scripting::UnityEngine::GUIUtilityProxy::ProcessEvent
0x00007ff680a22a64 (Unity) GUIView::ProcessRetainedMode
0x00007ff680ffe750 (Unity) GUIView::OnInputEvent
0x00007ff680a22993 (Unity) GUIView::ProcessInputEventFromAPI
0x00007ff680a22868 (Unity) GUIView::ProcessInputEvent
0x00007ff680fff58e (Unity) GUIView::ProcessEventMessages
0x00007ff680ff9314 (Unity) GUIView::GUIViewWndProc
0x00007ff81307ef5c (USER32) CallWindowProcW
0x00007ff81307e684 (USER32) DispatchMessageW
0x00007ff680fd2533 (Unity) MainMessageLoop
0x00007ff680fd7a44 (Unity) WinMain
0x00007ff6823a23fe (Unity) __scrt_common_main_seh
0x00007ff812cc7374 (KERNEL32) BaseThreadInitThunk
0x00007ff81337cc91 (ntdll) RtlUserThreadStart
</>
</>
CommandInvokationFailure: Gradle build failed.
C:\catch_the_flight_jdk\jdk-11.0.26\bin\java.exe -classpath “C:\catch_the_flight_gradle\gradle-7.5.1\lib\gradle-launcher-7.5.1.jar” org.gradle.launcher.GradleMain “-Dorg.gradle.jvmargs=-Xmx4096m” “bundleRelease”
</>
And I’m sharing the log about showing build info →
I change the gradle version by just typing 7.5.1 instead of 4.0.1 in here, I don’t know it it helps →
I upgraded the unity version to unity6 and downloaded gradle 8.0, jdk 17. Now I can take a build.