2017. 3. 30. 09:34ㆍKorean/개발백과사전
How to solve CommandInvokationFailure error in Unity
CommandInvokationFailure: Gradle build failed.
C:\Program Files\Java\jdk1.8.0_92\bin\java.exe -classpath "C:\Program Files\Unity\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\gradle\lib\gradle-launcher-2.14.jar"
org.gradle.launcher.GradleMain "assembleRelease" stderr[ FAILURE: Build failed with an exception. * What went wrong: A problem occurred configuring project ':GoogleMobileAdsPlugin'. > Could not open cp_proj remapped class cache for a3z4zdl5fcobdida8j688jy8w (C:\Users\Jiseob.RYU\.gradle\caches\2.14\scripts-remapped\build_3jmypqtfkm6e3lteukob7oq4o\a3z4zdl5fcobdida8j688jy8w\cp_proj57408229). > Unexpected lock protocol found in lock file. Expected 3, found 0. * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. ] stdout[ BUILD FAILED Total time: 2.254 secs ] exit code: 1 UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) UnityEditor.Android.GradleWrapper.RunJava (System.String args, System.String workingdir, UnityEditor.Android.Progress progress) UnityEditor.Android.GradleWrapper.Run (System.String workingdir, System.String task, UnityEditor.Android.Progress progress) UnityEditor.Android.PostProcessor.Tasks.BuildGradleProject.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) UnityEditor.HostView:OnGUI()
Solution is that,
Go to below path and delete all files under caches.
C:\Users\[Your Name]\.gradle\caches
Then restart Unity and compile
Cheers.
'Korean > 개발백과사전' 카테고리의 다른 글
How to avoid Unity physical collision two object (C# example code) (0) | 2017.04.03 |
---|---|
[VS Error] an exception has been encountered this may be caused by an extension activitylog xml (0) | 2017.03.31 |
[Unity Fnt 폰트 적용방법] 유니티에 비트맵 폰트 적용하는 방법(NGUI가 아니라 유니티 내장 GUI입니다.) (0) | 2017.03.17 |
무료동영상 편집 프로그램 윈도우 무비메이커 다운로드 및 설치방법 (0) | 2017.03.14 |
저작권 라이센스 뜻 자세히 알고 사용하세요 (Creative Common License) (0) | 2017.03.13 |