3์๊ฐ ์งธ ์ด๊ฑฐ ํ๋ ๋ถ์ก๊ณ ์๋๋ฐ ๋์ ํ ๋น๋๊ฐ ์๋จ...
c:/user/<์ฌ์ฉ์>/.gradle๋ ์๊ณ
custom base gradle template์ gadle ๋ฒ์ ๋ 3.4.0, 3.6.0, 6.1.1๋ก ๋ค ํด๋ดค๋๋ฐ๋ ์๋๊ณ
custom gradle propreties template์ enableR8์ false๋ก ๋ฐ๊พธ๋๊น ์ด๊ฑด ํด๊ฒฐํ๊ณ
open jdk์ ํจ๊ป ์๋ํฐ๋ฅผ ์์ ๋ค์ ์ง์ ๋ค ๊น์๋ ์๋๊ณ
์ง์ง ๋น๋๋ง ํ๋ฉด ๋๋๋ฐ ๋น๋๊ฐ ์๋ผ
๋ก๊ทธ๋ค)
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:6.1.1.
ย ย ย Searched in the following locations:
ย ย ย ย - https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/6.1.1/gradle-6.1.1.pom
ย ย ย ย - https://jcenter.bintray.com/com/android/tools/build/gradle/6.1.1/gradle-6.1.1.pom
ย ย ย 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
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
---------------------------------------------------------------------------------------------------
C:\Program Files\Unity\Hub\Editor\2021.3.0f1\Editor\Data\PlaybackEngines\AndroidPlayer\OpenJDK\bin\java.exe -classpath "C:\Program Files\Unity\Hub\Editor\2021.3.0f1\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\gradle\lib\gradle-launcher-6.1.1.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx4096m" "bundleRelease"
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:6.1.1.
ย ย ย Searched in the following locations:
ย ย ย ย - https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/6.1.1/gradle-6.1.1.pom
ย ย ย ย - https://jcenter.bintray.com/com/android/tools/build/gradle/6.1.1/gradle-6.1.1.pom
ย ย ย 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 <8a300b33cdde4c708cc6e9c6d5bf6bce>:0)
UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <8a300b33cdde4c708cc6e9c6d5bf6bce>:0)
UnityEditor.Android.Command.Run (System.String command, System.String args, System.String workingdir, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <8a300b33cdde4c708cc6e9c6d5bf6bce>:0)
UnityEditor.Android.AndroidJavaTools.RunJava (System.String args, System.String workingdir, System.Action`1[T] progress, System.String error) (at <8a300b33cdde4c708cc6e9c6d5bf6bce>:0)
UnityEditor.Android.GradleWrapper.Run (UnityEditor.Android.AndroidJavaTools javaTools, Unity.Android.Gradle.AndroidGradle androidGradle, System.String workingdir, System.String task, System.Action`1[T] progress) (at <8a300b33cdde4c708cc6e9c6d5bf6bce>:0)
Rethrow as GradleInvokationException: Gradle build failed
UnityEditor.Android.GradleWrapper.Run (UnityEditor.Android.AndroidJavaTools javaTools, Unity.Android.Gradle.AndroidGradle androidGradle, System.String workingdir, System.String task, System.Action`1[T] progress) (at <8a300b33cdde4c708cc6e9c6d5bf6bce>:0)
UnityEditor.Android.PostProcessor.Tasks.BuildGradleProject.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <8a300b33cdde4c708cc6e9c6d5bf6bce>:0)
UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <8a300b33cdde4c708cc6e9c6d5bf6bce>: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 <8a300b33cdde4c708cc6e9c6d5bf6bce>:0)
UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <8a300b33cdde4c708cc6e9c6d5bf6bce>:0)
UnityEditor.Android.PostProcessAndroidPlayer.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, AndroidPlayerBuildProgram.Data.AndroidPlayerBuildProgramOutput buildProgramOutput) (at <8a300b33cdde4c708cc6e9c6d5bf6bce>:0)
UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <8a300b33cdde4c708cc6e9c6d5bf6bce>:0)
UnityEditor.PostprocessBuildPlayer.Postprocess (UnityEditor.BuildTargetGroup targetGroup, UnityEditor.BuildTarget target, System.Int32 subtarget, 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 <780782bc035845f9909cebbd4c983ae3>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)
---------------------------------------------------------------------------------------------------
Build completed with a result of 'Failed' in 74 seconds (74104 ms)
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
---------------------------------------------------------------------------------------------------
UnityEditor.BuildPlayerWindow+BuildMethodException: 3 errors
ย at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x002da] in <780782bc035845f9909cebbd4c983ae3>:0ย
ย at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x00080] in <780782bc035845f9909cebbd4c983ae3>:0ย
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
์ธํฐ๋ท์์๋๊ฑฐ ๋คํด๋ดค๋๋ฐ๋ ๊ทธ๋ฌ๋ฉด....
๋ฐฑ์ ํด๋๊ณ ๋ฒ์ ์ฌ๋ ค๋ณด๊ณ ๊ทธ๋๋ ์๋๋ฉด... ๊ณ ํต
๋ ํน์ ์์ ์ง์ฐ๋๊น ๊ทธ๋์์ผ ๋น๋๋๊ธฐ๋ ํ๋๋ผ
2020.3.2f1์์ 2021.3.0f1์ผ๋ก ์ ๋ฐ์ดํธ๋ ํด๋ดค๋๋ฐ ์์ ์ต์ ์ ๊น์๋ด์ผํ๋
ํ๋ก๊ทธ๋ฅผ ์ฌ๋ ค
์ฌ๋ฆผ
์ฌ์ฉ ์ค์ธ sdk๋ ๋ญ๋ญ์์?? - dc App
google admob ํ๋
ํน์ ๋น๋์ธํ ์๊ฑฐ ํ๊ฒ sdk ๋ช์ผ๋กํ์ด? 30? - dc App
๋ด ์๊ฐ์ 1. external tool์์ jdk, ndk ์ด๋ฐ ๊ฒ๋ค์ ์ฌ์ฉํ๊ณ ์๋ ์๋ํฐ ๊ธฐ๋ณธ ๊ฒฝ๋ก๋ก ํต์ผ 2. ํ๊ฒ sdk ๋ฒ์ ์ 31, ์ต์ sdk๋ฒ์ ์ ์ ๋๋ชน ์ต์์ฌ์์ ๋ง๊ฒ ์์ (๋ช์ธ์ง ๊ธฐ์ต์๋จ) 3. ๋ํ๋์ ๋งค๋์ -> force resolve 4. ํธ์ฅ์ ํค์คํ ์ด ๋น๋ฐ๋ฒํธ ํ๋ ธ๋ ํ์ธ ์พ๋ํฐ ๊ธฐ๋ณธ ์ธํ ์ผ๋ก ๋น๋ํ๋ฉด ์ต๊ฐํ ๋ผ์ด๋ธ๋ฌ๋ฆฌ๋ค์ ๋น๋ ์๋ผ์ ๋ฌธ์ ์์๋๋ฐ ์์ ์ด๋ ํจํค์ง๋ง ๋ฐฑ์ ํด๋๊ณ ์ ํ๋ก์ ํธ์์ ๋น๋ ์ ๋๋์ง ํ์ธ ํ ๋ฐฑ์ ํ๊ฑฐ ๋ฃ์ด์ ํด๋ณด๋ ๊ฒ๋ ์ถ์ฒ - dc App
ํน์ gradle Custom ๊ฐ๋ฅํ๊ฒ ์ต์ ์ธํ ํด์ฃผ๊ณ ์๋์ฒ๋ผ repositories์ mavenCentral() ์ถ๊ฐํด๋ดค์ด? repositories {**ARTIFACTORYREPOSITORY** google() mavenCentral() jcenter() }
https://daldalhanstory.tistory.com/268
์ด๊ฑฐ
์ฐธ๊ณ ํด๋ด
๊ทธ๋ฆฌ๊ณ ๋ณดํต ๊ทธ๋๋ค ์ค๋ฅ๋ ๋ฒ์ ์๋ง๊ฑฐ๋ ๊ทธ๋ฐ๊ฑฐ๋ผ manifest ์ชฝ ์ ์กฐ์ ํด๋ณด๊ณ ๊ทธ๋์ผํจ