1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

UnityをバージョンアップするとNDK not foundになり、Androidビルドに失敗する

Posted at

問題

-Unityのバージョンを2019.2.13f1から2019.2.15f1にアップデート
-2.13fでは行えていたAndroidビルドに失敗するようになった(NDK not found)

解決方法

試してみたこと

  • Unity 2.13fから2.15fにUnity Hub経由でAndroidモジュール込みで、バージョンアップ
  • NDK not foundでAndroidビルドに失敗する
  • 外部ツールの設定でNDKの場所を"NDK\android-ndk-r16b"に設定
  • 参考のようにエラーが出てAndroidビルドに失敗する
  • 外部ツールの設定でNDKの場所を2.13f(ビルドできていたバージョン)のものにする
  • Androidビルド成功
  • 2.13の"NDK"と2.15の"NDK\android-ndk-r16b"の中身を比較
  • 一致する

以上の結果からNDKの場所が悪いっぽい気がしたので変更してみたら、ビルドできた

解決方法

NDKのフォルダの直下にNDKの中身を配置するように変更
"NDK\android-ndk-r16b"から中身を取り出してNDK直下に配置する


C:\Program Files\Unity\Hub\Editor\2019.2.15f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\android-ndk-r16b\NDKの中身


C:\Program Files\Unity\Hub\Editor\2019.2.15f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\NDKの中身

環境

  • Windows 10 pro
  • Unity 2019.2.13f
  • Android Build Supportモジュール込み
  • Unity Hub経由でインストール
  • Unity 2019.2.15f
  • Android Build Supportモジュール込み
  • Unity Hub経由でインストール

参考

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?