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

转载自: https://blog.csdn.net/qq_39108767/article/details/106764537/

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).

【Unity打包Android】Android NDK not found / NDK 16 detected. Unity requires NDK r19(64-bit)_第1张图片

打包报错:

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,解压后可直接使用,不再报错

你可能感兴趣的:(Unity,Unity基础,Unity插件,unity)