LoginSignup
1
2

More than 3 years have passed since last update.

対応するOSのBuildSupportをインストールしてるはずなのに「Unsupported Build Target」と出てくる時の対処法。

Posted at

問題の発生

Unityを立ち上げProjectを開こうとしたら、こんなエラーが出ました。
要約すると「Android Build Supportを入れてないじゃろ」といったところですかね。
「さっきまで使ってたはずなのに何故???」
となったことが何度かあります。
スクリーンショット 2020-03-23 16.00.17.png

Unsupported Build Target
Build Target AndroidPlayer is not supported. Switch to MacStandaloneSupport or exit Unity?

iOSとかだと文言が Build Target iOSPlayer is not supported.とかになるんですかね?

対処法

  1. 新規プロジェクトを作成し開く。(仮にTempProjectって名前でもつけてあげますか)
  2. File -> BuildSettings を開く。
  3. Platformを任意のOSを選択し、SwitchPlatform を押す。今回の場合はAndroidを選択しました。
  4. TempProjectを閉じる。
  5. 「Unsupported Build Target」のエラーがでたプロジェクトを開き直す。
  6. 開けるはず!

こんな時に発生しやすい

・BuildTarget が Android または iOS の状態で作業をしてる際にUnityをクラッシュさせる。
 その後にプロジェクトを開き直すとたまに出てきちゃう。

環境

Mojave 10.14.5
Unity 2018.3.11f1

1
2
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
2