質問編集履歴
1
内容の変更
title
CHANGED
|
@@ -1,1 +1,1 @@
|
|
|
1
|
-
Unity Android
|
|
1
|
+
Unity Androidビルドでエラーが出る
|
body
CHANGED
|
@@ -1,78 +1,41 @@
|
|
|
1
|
-
###
|
|
1
|
+
### はじめに
|
|
2
2
|
|
|
3
3
|
Unityで、Androidアプリを作成し、ビルドをしようとした結果、エラーが表示されました。
|
|
4
4
|
|
|
5
|
-
###
|
|
5
|
+
###コンソールに表示されたエラー
|
|
6
|
-
|
|
6
|
+
Unityのプロジェクトのファイルの位置を変更したところ、また別のエラーが出ました。
|
|
7
7
|
```
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
Failed to extract Android SDK Platform version from string 'R',
|
|
9
|
+
Input string was not in a correct format.
|
|
10
|
+
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
|
|
11
|
+
CommandWithNoStdoutInvokationFailure: Gradle initialization failed.
|
|
12
|
+
UnityEditor.Android.Command.RunWithShellExecute (System.String command, System.String args, System.String workingdir, System.String errorMsg) (at <5557b445b4634c46b2ec8376c040bd34>:0)
|
|
13
|
+
UnityEditor.Android.AndroidJavaTools.RunJavaWithShellExecute (System.String args, System.String workingdir, System.String error) (at <5557b445b4634c46b2ec8376c040bd34>:0)
|
|
14
|
+
UnityEditor.Android.GradleWrapper.WarmupGradle (UnityEditor.Android.AndroidJavaTools javaTools, System.String workingDir, System.String baseCommand) (at <5557b445b4634c46b2ec8376c040bd34>:0)
|
|
15
|
+
Rethrow as GradleInvokationException: Gradle initialization failed.
|
|
16
|
+
UnityEditor.Android.GradleWrapper.WarmupGradle (UnityEditor.Android.AndroidJavaTools javaTools, System.String workingDir, System.String baseCommand) (at <5557b445b4634c46b2ec8376c040bd34>:0)
|
|
17
|
+
UnityEditor.Android.PostProcessAndroidPlayer+<ExecuteWarmup>c__AnonStorey0.<>m__0 () (at <5557b445b4634c46b2ec8376c040bd34>:0)
|
|
18
|
+
System.Threading.ThreadHelper.ThreadStart_Context (System.Object state) (at <599589bf4ce248909b8a14cbe4a2034e>:0)
|
|
19
|
+
System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) (at <599589bf4ce248909b8a14cbe4a2034e>:0)
|
|
20
|
+
System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) (at <599589bf4ce248909b8a14cbe4a2034e>:0)
|
|
21
|
+
System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state) (at <599589bf4ce248909b8a14cbe4a2034e>:0)
|
|
22
|
+
System.Threading.ThreadHelper.ThreadStart () (at <599589bf4ce248909b8a14cbe4a2034e>:0)
|
|
23
|
+
UnityEngine.UnhandledExceptionHandler:<RegisterUECatcher>m__0(Object, UnhandledExceptionEventArgs)
|
|
24
|
+
Error occurred during initialization of VM
|
|
10
25
|
|
|
26
|
+
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
|
|
11
|
-
|
|
27
|
+
Could not reserve enough space for object heap
|
|
12
28
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
FAILURE : Build failed with an exception.
|
|
16
|
-
|
|
17
|
-
* Where :
|
|
18
|
-
Build file 'C:\Users\xxxxx\OneDrive\�h�L�������g\Unity\Roulette\Temp\gradleOut\build.gradle' line : 24
|
|
19
|
-
|
|
20
|
-
* What went wrong :
|
|
21
|
-
A problem occurred evaluating root project 'gradleOut'
|
|
22
|
-
> Failed to apply plugin [id'com.android.application']
|
|
23
|
-
> 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)
|
|
24
|
-
|
|
25
|
-
* Try :
|
|
26
|
-
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.
|
|
27
|
-
|
|
28
|
-
* Get more help at http://help.gradle.org
|
|
29
|
-
|
|
30
|
-
BUILD FAILED in 4s
|
|
29
|
+
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
|
|
31
30
|
CommandInvokationFailure: Gradle build failed.
|
|
32
31
|
C:/Program Files/2019.2.6f1/Editor/Data/PlaybackEngines/AndroidPlayer/Tools\OpenJDK\Windows\bin\java.exe -classpath "C:\Program Files\2019.2.6f1\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\gradle\lib\gradle-launcher-5.1.1.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx4096m" "assembleRelease"
|
|
33
32
|
|
|
34
33
|
stderr[
|
|
35
34
|
|
|
36
|
-
FAILURE: Build failed with an exception.
|
|
37
|
-
|
|
38
|
-
* Where:
|
|
39
|
-
Build file 'C:\Users\rukak\OneDrive\�h�L�������g\Unity\Roulette\Temp\gradleOut\build.gradle' line: 24
|
|
40
|
-
|
|
41
|
-
* What went wrong:
|
|
42
|
-
A problem occurred evaluating root project 'gradleOut'.
|
|
43
|
-
> Failed to apply plugin [id 'com.android.application']
|
|
44
|
-
> 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.
|
|
45
|
-
|
|
46
|
-
* Try:
|
|
47
|
-
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.
|
|
48
|
-
|
|
49
|
-
* Get more help at https://help.gradle.org
|
|
50
|
-
|
|
51
|
-
BUILD FAILED in 4s
|
|
52
|
-
CommandInvokationFailure: Gradle build failed.
|
|
53
|
-
C:/Program Files/2019.2.6f1/Editor/Data/PlaybackEngines/AndroidPlayer/Tools\OpenJDK\Windows\bin\java.exe -classpath "C:\Program Files\2019.2.6f1\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\gradle\lib\gradle-launcher-5.1.1.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx4096m" "assembleRelease"
|
|
54
|
-
|
|
55
|
-
stderr[
|
|
56
|
-
|
|
57
|
-
FAILURE: Build failed with an exception.
|
|
58
|
-
|
|
59
|
-
* Where:
|
|
60
|
-
Build file 'C:\Users\rukak\OneDrive\�h�L�������g\Unity\Roulette\Temp\gradleOut\build.gradle' line: 24
|
|
61
|
-
|
|
62
|
-
* What went wrong:
|
|
63
|
-
A problem occurred evaluating root project 'gradleOut'.
|
|
64
|
-
> Failed to apply plugin [id 'com.android.application']
|
|
65
|
-
> 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.
|
|
66
|
-
|
|
67
|
-
* Try:
|
|
68
|
-
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.
|
|
69
|
-
|
|
70
|
-
* Get more help at https://help.gradle.org
|
|
71
|
-
|
|
72
|
-
BUILD FAILED in 4s
|
|
73
35
|
]
|
|
74
36
|
stdout[
|
|
75
|
-
|
|
37
|
+
Error occurred during initialization of VM
|
|
38
|
+
Could not reserve enough space for object heap
|
|
76
39
|
]
|
|
77
40
|
exit code: 1
|
|
78
41
|
UnityEditor.Android.Command.WaitForProgramToRun (UnityEditor.Utils.Program p, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <5557b445b4634c46b2ec8376c040bd34>:0)
|
|
@@ -94,8 +57,9 @@
|
|
|
94
57
|
|
|
95
58
|
Build completed with a result of 'Failed'
|
|
96
59
|
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
|
|
97
|
-
UnityEditor.BuildPlayerWindow+BuildMethodException:
|
|
60
|
+
UnityEditor.BuildPlayerWindow+BuildMethodException: 5 errors
|
|
98
61
|
at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x00242] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:190
|
|
99
62
|
at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x0007f] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:95
|
|
100
63
|
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
|
|
64
|
+
|
|
101
65
|
```
|