今、unity2019を使用しています。
Andoroid機で実機テストしたいのですが、「Gradle build failed, See the Console for details.」が出てしまい、これを解決するにはわざわざアンドロイドスタジオにファイルを読み込ませたものをビルドするしかないそうです。
今試そうと思っていますが、それでも実機テストが成功するかどうかわからない点を踏まえると正直心が折れそうです。
将来はPlayストアに簡単なものを作って投稿してみたいと思っているのですが、
1:実機テストが簡単
2:初心者でもじっくり学んでいける+起動できる
上記を含めたいいソフトはないでしょうか?
アドバイスをお願い致します
=======================
ちなみにビルドを試してみると以下のようなエラーメッセージがでます
【1】
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
【2】
FAILURE: Build failed with an exception.
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
【3】
- Where:
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
【4】
Build file 'C:\Users\litelitelite\�ɂԂ��E�B���h�E�V���b�s���O�I\Temp\gradleOut\launcher\build.gradle' line: 3
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
【5】
- What went wrong:
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
【6】
A problem occurred evaluating project ':launcher'.
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
【7】
Failed to apply plugin [id 'com.android.application']
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
【8】
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)
【9】
- Try:
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
【10】
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)
【11】
- Get more help at https://help.gradle.org
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
【12】
BUILD FAILED in 4s
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
【13】
CommandInvokationFailure: Gradle build failed.
C:/Program Files/Unity/Hub/Editor/2019.3.14f1/Editor/Data/PlaybackEngines/AndroidPlayer\OpenJDK\bin\java.exe -classpath "C:\Program Files\Unity\Hub\Editor\2019.3.14f1\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\litelitelite\�ɂԂ��E�B���h�E�V���b�s���O�I\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
]
stdout[
]
exit code: 1
UnityEditor.Android.Command.WaitForProgramToRun (UnityEditor.Utils.Program p, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <3167064085404657b0d6c498207da025>:0)
UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <3167064085404657b0d6c498207da025>:0)
UnityEditor.Android.Command.Run (System.String command, System.String args, System.String workingdir, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <3167064085404657b0d6c498207da025>:0)
UnityEditor.Android.AndroidJavaTools.RunJava (System.String args, System.String workingdir, System.Action1[T] progress, System.String error) (at <3167064085404657b0d6c498207da025>:0) UnityEditor.Android.GradleWrapper.Run (UnityEditor.Android.AndroidJavaTools javaTools, System.String workingdir, System.String task, System.Action
1[T] progress) (at <3167064085404657b0d6c498207da025>: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 <3167064085404657b0d6c498207da025>:0)
UnityEditor.Android.PostProcessor.Tasks.BuildGradleProject.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <3167064085404657b0d6c498207da025>:0)
UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <3167064085404657b0d6c498207da025>: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 <3167064085404657b0d6c498207da025>:0)
UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <3167064085404657b0d6c498207da025>: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 <3167064085404657b0d6c498207da025>:0)
UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <3167064085404657b0d6c498207da025>: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 <cf7d2c2e83f749e8943578126f9eff4b>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
【14】
Build completed with a result of 'Failed' in 154 seconds (153595 ms)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
【15】
UnityEditor.BuildPlayerWindow+BuildMethodException: 19 errors
at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x002bb] in <cf7d2c2e83f749e8943578126f9eff4b>:0
at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x00080] in <cf7d2c2e83f749e8943578126f9eff4b>:0
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
回答1件
あなたの回答
tips
プレビュー