LoginSignup
1
1

More than 3 years have passed since last update.

UnityにAndroid SDKを設定しようとしたら「Unable to detect SDK in the selected directory.」

Posted at
  • Windows 10 Pro
  • Unity 2018.4.18f1
  • Android Studio 3.6.3

起きた問題

Android Studio から SDK Managerで対象のプラットフォームパッケージをインストールする。
Unity側で Edit > Preferences > Extension Tools > Android > SDKBrowse ボタンからSDKのパスを設定しようとすると

Unable to detect SDK in the selected directory.

と表示されてUnityが正しくSDKを認識してくれない。

4227dc0e119618213160b13a353918cc.png

解決方法

Android Studio の SDK Manager で Android SDK > SDK Tools の 右下にある Hide Obsolete Packages のチェックを外す。
Android SDK Tools (Obsolete) が表示されるの
でインストールする。

Unity側に戻ると自動で認識してくれるようになる。

bd89a24279c9edb361c0b63b0a74ebea.png

SDK Toolsは2017年から更新されていないらしい。
Android Studio 3.5系に戻すことでも対応できたので、Android Studioのバージョンがあがるとまた別の問題になるかも。

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1