gologiusの巣

プログラミングなどの技術メモです。誰かの役に立てるとうれしいです。

Unity5.5でAndroid用にビルドする

本題ではないエラーその1

ビルドする際にこんなエラーが出た

Error building Player because scripts have compile errors in the editor

エラーがあるスクリプトがあるので直せとのこと. ただ,エラー表示が出てない. とりあえず,エディタを再起動したらエラーが出力されるようになった.

僕の場合は,外部アセットで使っていないデモ用スクリプトがエラーの原因だったので,そのまま消した.

本題ではないエラーその2

「PlayerSettings->Identification->Bundle Identifer」がデフォルトになってのでオリジナルにした.

これは初心者がよくやりそう

本題

ビルドはできたが,以下のエラーで起動できない.

your hardware does not support this application 

環境はAndroid 6.0, HTC HTV31

このエラーについては以下の通り

Failure to initialize! Your hardware does not support this application, sorry! - Unity Answers

そしてこれを参考に,PlayerSettingsの以下の図の場所をforce internalに変更する f:id:kamiwo_koete:20170305220807p:plain

そうすると動いた