Unity의 Android 빌드에서 Gradle 오류

2124 단어 오류gradleUnity
Unity에서 Android를 빌드하려고 할 때 Gradle 오류가 발생한 원인 메모

오류 발생시 화면







Editor.log


CommandInvokationFailure: Gradle build failed. 
C:/Program Files/Unity/Hub/Editor/2019.4.1f1/Editor/Data/PlaybackEngines/AndroidPlayer\OpenJDK\bin\java.exe -classpath "C:\Program Files\Unity\Hub\Editor\2019.4.1f1\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\gradle\lib\gradle-launcher-5.1.1.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx4096m" "assembleRelease"

stderr[

FAILURE: Build failed with an exception.

* Where:
Build file 'C:\develop\Unity\���{��t�H���_\BuildTest\Temp\gradleOut\launcher\build.gradle' line: 3

* What went wrong:
A problem occurred evaluating project ':launcher'.
> Failed to apply plugin [id 'com.android.application']
   > Your project path contains non-ASCII characters. This will most likely cause the build to fail on Windows. Please move your project to a different directory. See http://b.android.com/95744 for details. This warning can be disabled by adding the line 'android.overridePathCheck=true' to gradle.properties file in the project directory.

* 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

원인



프로젝트 작성 폴더의 경로에 일본어가 포함되어 있었기 때문이었습니다.
다음과 같은 경로로 프로젝트를 만들고 있습니다.
C:\develop\Unity\日本語フォルダ\BuildTest

일본어를 포함하지 않는 패스로 빌드하면 성공했습니다.

좋은 웹페이지 즐겨찾기