【問題記錄】【Unity打包Android】Android NDK not found / NDK 16 detected. Unity requires NDK r19(64-bit)

NDK配置報錯:

Edit -> Preferences -> External Tool -> Android NDK

不支持原有版本:android-ndk-r16b,需要r19纔行

NDK 16.1.4479499 detected. Unity requires NDK r19(64-bit)(19.0.5232133).

打包報錯:

UnityException: Android NDK not found
Android NDK not found or invalid. Please, fix it in Preferences -> External Tools
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

解決:

參考:

https://forum.unity.com/threads/solved-2019-3-0a4-incompatible-ndk.688108/

https://forum.unity.com/threads/android-ndk-missing.689122/

去官網下載19c的版本號與Unity指定的不一致,仍然會報錯,只能下載指定的NDK r19(64-bit)(19.0.5232133)版本

下載鏈接:https : //dl.google.com/android/repository/android-ndk-r19-windows -x86_64.zip,解壓後可直接使用,不再報錯

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章