#環境
ソフト名 | バージョン |
---|---|
Windows | 10(insiderPreview) 64bit |
Unity | 2020.1.0b3(64bit) |
JDK | OpenJDK(Unity付属 |
実現したいこと
UnityでAndroidゲームを作っているのですが、以下記載のエラーが2つのプロジェクトで発生し、ビルドが全くできません。
ビルドすると、エラーの詳しい内容はコンソールをみてね的な内容が出てきて、コンソールを見ると、以下の内容が表示されましたが、全く分からず、ビルド出来ません。
原因などを教えてください。
試したこと
さっぱりわからないので何も試してません
エラー
多すぎてイライラします
* What went wrong: UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)
A problem occurred evaluating project ':launcher'. UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)
> Failed to apply plugin [id 'com.android.application'] UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)
> 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. UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)
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. UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8 UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)
CommandInvokationFailure: Gradle build failed. C:/Program Files/2020.1.0b3/Editor/Data/PlaybackEngines/AndroidPlayer\OpenJDK\bin\java.exe -classpath "C:\Program Files\2020.1.0b3\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:\Users\takut\OneDrive\プログラミング\Unity\SwipeGo\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 BUILD FAILED in 4s 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 <698408df9428411abcdde21f232e896c>:0) UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <698408df9428411abcdde21f232e896c>:0) UnityEditor.Android.Command.Run (System.String command, System.String args, System.String workingdir, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <698408df9428411abcdde21f232e896c>:0) UnityEditor.Android.AndroidJavaTools.RunJava (System.String args, System.String workingdir, System.Action`1[T] progress, System.String error) (at <698408df9428411abcdde21f232e896c>:0) UnityEditor.Android.GradleWrapper.Run (UnityEditor.Android.AndroidJavaTools javaTools, System.String workingdir, System.String task, System.Action`1[T] progress) (at <698408df9428411abcdde21f232e896c>: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 <698408df9428411abcdde21f232e896c>:0) UnityEditor.Android.PostProcessor.Tasks.BuildGradleProject.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <698408df9428411abcdde21f232e896c>:0) UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <698408df9428411abcdde21f232e896c>: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 <698408df9428411abcdde21f232e896c>:0) UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <698408df9428411abcdde21f232e896c>: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 <698408df9428411abcdde21f232e896c>:0) UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <698408df9428411abcdde21f232e896c>: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 <e2353c5c084f4b5a9d8ead9c6b8ffaa2>:0) UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)
Build completed with a result of 'Failed' UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)
UnityEditor.BuildPlayerWindow+BuildMethodException: 20 errors at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x0027c] in <e2353c5c084f4b5a9d8ead9c6b8ffaa2>:0 at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x00080] in <e2353c5c084f4b5a9d8ead9c6b8ffaa2>:0 UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
退会済みユーザー
2020/04/03 12:18