android 任务:unityLibrary:BuildIl2CppTask失败

wmvff8tz  于 2023-04-28  发布在  Android
关注(0)|答案(1)|浏览(1016)

FAILURE:生成失败,出现异常。#

Where:
Build file '/Users/amboji/Documents/react-native-unity-main/example/unity/builds/android/unityLibrary/build.gradle' line: 66
  • 出了什么问题:任务“:unityLibrary:BuildIl 2CppTask”执行失败。

未安装NDK
使用此库- @azesmway/react-native-unity

qgelzfjb

qgelzfjb1#

这对我很有效!

添加与android studio [project_root]/unity/builds/android/unityLibrary/build.gradle中相同的ndkVersion

android { 
... 
ndkVersion = "21.3.6528147" 
... 
}

相关问题