[에러&경고] gradle out 관련 문제 by pbkim

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)


핑백

덧글

  • pbkim 2019/06/07 09:43 #

    1. NDK r16b 를 다운받습니다.
    [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 오류|작성자 디엔

  • pbkim 2019/06/07 09:42 #

    ndk toolchain 에 mips~~ 가 없다는 내용이고요
    유니티에서 제공하는 ndk 에는 있지만 자꾸 없다고 나오게 됩니다..
    이유는 Android Studio 에서 NDK 를 설치하면 유니티의 NDK 셋팅 폴더를 따르지 않더군요

    해결방법은 유니티에서 제공하는 NDK 의 toolchains 를
    Android Studio 에서 설치한 sdk/ndk-bundle/ 로 복사하시면됩니다..
    (ndk-bundle 를 삭제해도 되는군요)
※ 로그인 사용자만 덧글을 남길 수 있습니다.

구글 468*60


Linked in

linknow profile