CommandInvokationFailure: Gradle build failed.
c:\Program Files\Java\jdk1.8.0_102\bin\java.exe -classpath "F:\unity2018.2\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\gradle\lib\gradle-launcher-4.2.1.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx4096m" "assembleRelease"
stderr[
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'gradleOut'.
> No toolchains found in the NDK toolchains folder for ABI with prefix: mips64el-linux-android
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
* Get more help at https://help.gradle.org
BUILD FAILED in 10s
]
stdout[
]
exit code: 1
UnityEditor.Android.Command.WaitForProgramToRun (UnityEditor.Utils.Program p, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
UnityEditor.Android.AndroidJavaTools.RunJava (System.String args, System.String workingdir, System.Action`1 progress, System.String error)
UnityEditor.Android.GradleWrapper.Run (UnityEditor.Android.AndroidJavaTools javaTools, System.String workingdir, System.String task, System.Action`1 progress)
Rethrow as GradleInvokationException: Gradle build failed
UnityEditor.Android.GradleWrapper.Run (UnityEditor.Android.AndroidJavaTools javaTools, System.String workingdir, System.String task, System.Action`1 progress)
UnityEditor.Android.PostProcessor.Tasks.BuildGradleProject.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context)
UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
덧글
[ndk 다운로드 링크]
https://developer.android.com/ndk/downloads/older_releases
2. 압축 해제후 android-ndk-r16b…/toolchains 에 있는 mips64el-linux-android-4.9 , mipsel-linux-android-4.9 폴더를 복사한다
3. {자신의 Android library 경로}/Android/sdk/ndk-bundle/toolchains 에 mips64el-linux-android-4.9 , mipsel-linux-android-4.9 복사한 붙여넣는다.
4. 안드로이드 스튜디오 재실행 한다.
[출처] No toolchains found in the NDK toolchains folder for ABI with prefix: mips64el-linux-android 오류|작성자 디엔
유니티에서 제공하는 ndk 에는 있지만 자꾸 없다고 나오게 됩니다..
이유는 Android Studio 에서 NDK 를 설치하면 유니티의 NDK 셋팅 폴더를 따르지 않더군요
해결방법은 유니티에서 제공하는 NDK 의 toolchains 를
Android Studio 에서 설치한 sdk/ndk-bundle/ 로 복사하시면됩니다..
(ndk-bundle 를 삭제해도 되는군요)