CommandInvokationFailure: Gradle build failed.ย
C:\Program Files\Unity\Hub\Editor\2020.3.6f1\Editor\Data\PlaybackEngines\AndroidPlayer\OpenJDK\bin\java.exe -classpath "C:\Program Files\Unity\Hub\Editor\2020.3.6f1\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\gradle\lib\gradle-launcher-5.6.4.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx4096m" "assembleRelease"
stderr[
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':launcher'.
> Could not resolve all artifacts for configuration ':launcher:classpath'.
ย ย > Could not find com.android.tools.build:gradle:5.6.4.
ย ย ย Searched in the following locations:
ย ย ย ย - https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/5.6.4/gradle-5.6.4.pom
ย ย ย ย - https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/5.6.4/gradle-5.6.4.jar
ย ย ย ย - https://jcenter.bintray.com/com/android/tools/build/gradle/5.6.4/gradle-5.6.4.pom
ย ย ย ย - https://jcenter.bintray.com/com/android/tools/build/gradle/5.6.4/gradle-5.6.4.jar
ย ย ย Required by:
ย ย ย ย ย project :launcher
* 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 1s
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
]
stdout[
]
exit code: 1
UnityEditor.Android.Command.WaitForProgramToRun (UnityEditor.Utils.Program p, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <2c6e9a95f1dd4e06ad71afcd2684dcb7>:0)
UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <2c6e9a95f1dd4e06ad71afcd2684dcb7>:0)
UnityEditor.Android.Command.Run (System.String command, System.String args, System.String workingdir, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <2c6e9a95f1dd4e06ad71afcd2684dcb7>:0)
UnityEditor.Android.AndroidJavaTools.RunJava (System.String args, System.String workingdir, System.Action`1[T] progress, System.String error) (at <2c6e9a95f1dd4e06ad71afcd2684dcb7>:0)
UnityEditor.Android.GradleWrapper.Run (UnityEditor.Android.AndroidJavaTools javaTools, System.String workingdir, System.String task, System.Action`1[T] progress) (at <2c6e9a95f1dd4e06ad71afcd2684dcb7>:0)
Rethrow as GradleInvokationException: Gradle build failed
UnityEditor.Android.GradleWrapper.Run (UnityEditor.Android.AndroidJavaTools javaTools, System.String workingdir, System.String task, System.Action`1[T] progress) (at <2c6e9a95f1dd4e06ad71afcd2684dcb7>:0)
UnityEditor.Android.PostProcessor.Tasks.BuildGradleProject.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <2c6e9a95f1dd4e06ad71afcd2684dcb7>:0)
UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <2c6e9a95f1dd4e06ad71afcd2684dcb7>:0)
Rethrow as BuildFailedException: Exception of type 'UnityEditor.Build.BuildFailedException' was thrown.
UnityEditor.Android.PostProcessor.CancelPostProcess.AbortBuild (System.String title, System.String message, System.Exception ex) (at <2c6e9a95f1dd4e06ad71afcd2684dcb7>:0)
UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <2c6e9a95f1dd4e06ad71afcd2684dcb7>:0)
UnityEditor.Android.PostProcessAndroidPlayer.PostProcess (UnityEditor.BuildTarget target, System.String stagingAreaData, System.String stagingArea, System.String playerPackage, System.String installPath, System.String companyName, System.String productName, UnityEditor.BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) (at <2c6e9a95f1dd4e06ad71afcd2684dcb7>:0)
UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <2c6e9a95f1dd4e06ad71afcd2684dcb7>:0)
UnityEditor.PostprocessBuildPlayer.Postprocess (UnityEditor.BuildTargetGroup targetGroup, UnityEditor.BuildTarget target, System.String installPath, System.String companyName, System.String productName, System.Int32 width, System.Int32 height, UnityEditor.BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) (at <e09fc44b2b464346872ad04477f51ab1>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)
์ด๊ฒ ์ฝ๋ ์ธ๋ฐ ์ด๊ฒ๋ง๊ณ 3๊ฐ๋ ๋ ์์ต๋ใท... ์ด๊ฒ ํด๊ฒฐํ๊ณ ํ๋ ค๊ณ ํ๋๋ฐ ๋์์คใ ์ ใ ใ ใ ใ ใ
ํด๋น ๋๊ธ์ ์ญ์ ๋์์ต๋๋ค.
๋จธ๊ฐ๋ฌธ์ ์ธ๊ฐ์ใ ใ ใ ใ ใ
์ ๊ฐ 2020.3.61f์ฐ๊ณ ์๋๋ฐ ์ค์ ์ด ๋ค๋ฅธ๊ฐ? ๋ด ๋๋ค ํ๋ก์ ํธ๋ ๋ค ์์ด๊ตฌ์ - dc App
์ ๊ฐ๋ฐํ๋ค ์ด๋ฐ๊ฑฐ ๋จ๋ฉด ์ง์ง ๋ต์๊ณ๋ค
https://drehzr.tistory.com/183
์ด๊ฑด์๋๊ฒ ์ฃ
์๋๋๋คใ ใ - dc App
์ด๋ ๊ฒ ํ๋ฒ ์๋ํด๋ณด๊ฒ ์?
๋๋ 2020.3 ๋ฒ์ ์ธ๋ฐ ์ผ๋จ
1. Edit > Preference > External Tools > JDK Installed with Unity์ ๊ฒฝ๋ก์ ์๋ ์ค์ ์ ์ฒดํฌ ํ๊ณ > ๋งจ ๋ง์ง๋ง์ ์ฌ๋์ ์ถ๊ฐ
๊ทธ๋ค์ Resolve ํ๋ค์์ ๊ทธ๋๋ ์ค๋ฅ๋๋ฉด ๋ค์ ์๋ ค์ค 2๋ฒ์งธ ๋ฐฉ๋ฒ ์๋ ค์ค๊ฒ
์ง๊ธ ๊ทธ๋ฅ ์๋ก ๋ง๋ค๊ณ ์๋๋ฐ ์๋๋ฉด ๋ง์๋๋ฆด๊ฒ์ - dc App
์ด๊ฑฐ๊ฐ๋นก์นจ ๋ช๋ฒ์ ์ฌ์ค์นํ๋์ง๋ชจ๋ฅด๊ฒ ์. ์๋๋ก์ด๋์คํ๋์ค sdk ์ธ๊ฐ ๊ทธ๊ฑฐ ์ต์ ๋ฒ์ ๋ฃ์ผ๋๊น ๋๊ธดํ์์.. ๊ฒฝ๋ก๋ "\","/" <<์ด๊ฑฐ๋ ๋ฐ๊ฟจ์์์
์๋๋ก์ด๋ ์คํ๋์ค๋ ๊ฐ์ด ์ฐ๊ณ ์ถ์๋ฐ ์ฐ์ ์ฐ๋์ง ๋ชจ๋ฅด๊ฒ ์ด์ ใ ใ ใ - dc App