【发布时间】:2021-11-30 04:03:13
【问题描述】:
我正在使用 Unity (asmadsen/react-native-unity-view) 开发一个 React-Native 项目。该代码在 Android 和 iOS 上都可以正常工作,并且也正在分别为这两个平台生成构建。但是现在我正在尝试通过 Appcenter for Android 进行构建,并执行所有必要的设置过程,但它一直都在失败。但是当我为演示 React-Native 项目做同样的事情时,在 Appcenter 上构建是成功的。
Appcenter 上的错误日志是:
FAILURE: Build failed with an exception.
* Where:
Build file '/Users/runner/work/1/s/android/UnityExport/unityLibrary/build.gradle' line: 66
* What went wrong:
Execution failed for task ':UnityExport:BuildIl2CppTask'.
> Location specified by ndk.dir (/Applications/Unity/Hub/Editor/2020.3.16f1/PlaybackEngines/AndroidPlayer/NDK) did not contain a valid NDK and couldn't be used
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 3m 56s
任何人都可以有任何想法并帮助我。提前致谢。
【问题讨论】:
标签: react-native unity3d android-build visual-studio-app-center automated-deployment