unityでAndroid向けにbuildをするとエラーが発生しますunityのバージョンは2022.3.62fです。エラーの内容は以下の様です。UnityException: Android SDK not foundUnable to detect SDK in the selected directory. C:\\Users\\[user名]\\AppData\\Local\\Android\\Sdk\\cmdline-tools\\latest\\bin\\sdkmanager.bat does not exist. Android SDK command-line tools component is not found. Make sure \u0026quot;Command-line Tools (6.0)\u0026quot; is installed in the SDK manager.If command-line tools are installed, but this message is still shown, please restart the Unity editor. UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean\u0026amp;)Build completed with a result of 'Failed' in 9 seconds (8578 ms)UnityException: Android SDK not foundUnable to detect SDK in the selected directory. C:\\Users\\[user名]\\AppData\\Local\\Android\\Sdk\\cmdline-tools\\latest\\bin\\sdkmanager.bat does not exist. Android SDK command-line tools component is not found. Make sure \u0026quot;Command-line Tools (6.0)\u0026quot; is installed in the SDK manager.If command-line tools are installed, but this message is still shown, please restart the Unity editor. UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool\u0026amp;)EndLayoutGroup: BeginLayoutGroup must be called first.UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool\u0026amp;)

Android

1件の回答

回答を書く

1055790

2026-03-21 17:10

+ フォロー

ターゲットAPIレベルを変えるだけでも改善することはあります。

Unityのモジュールの含まれるSDKは一部のAPIレベルにしか対応していないので、古めのバージョンにも対応するには、Android StudioのSDKファイルをそのまま流用するか、platformsの内容をUnityのPlaybackEngineの中にあるSDK/platformsにコピーする必要があります。

うったえる有益だ(0シェアするブックマークする

関連質問

Copyright © 2026 AQ188.com All Rights Reserved.

博識 著作権所有