質問編集履歴

1

内容の変更

2020/03/04 04:14

投稿

uttiikia
uttiikia

スコア5

test CHANGED
@@ -1 +1 @@
1
- Unity Android ビルド 21個のエラー
1
+ Unity Androidビルドエラーが出る
test CHANGED
@@ -1,4 +1,4 @@
1
- ### 前提・実現したいこと
1
+ ### はじめに
2
2
 
3
3
 
4
4
 
@@ -6,57 +6,55 @@
6
6
 
7
7
 
8
8
 
9
- ### Buildをした際に表示されエラーメッセージ
9
+ ###コンソールに表示されエラー
10
+
11
+ Unityのプロジェクトのファイルの位置を変更したところ、また別のエラーが出ました。
12
+
13
+ ```
14
+
15
+ Failed to extract Android SDK Platform version from string 'R',
16
+
17
+ Input string was not in a correct format.
18
+
19
+ UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
20
+
21
+ CommandWithNoStdoutInvokationFailure: Gradle initialization failed.
22
+
23
+ UnityEditor.Android.Command.RunWithShellExecute (System.String command, System.String args, System.String workingdir, System.String errorMsg) (at <5557b445b4634c46b2ec8376c040bd34>:0)
24
+
25
+ UnityEditor.Android.AndroidJavaTools.RunJavaWithShellExecute (System.String args, System.String workingdir, System.String error) (at <5557b445b4634c46b2ec8376c040bd34>:0)
26
+
27
+ UnityEditor.Android.GradleWrapper.WarmupGradle (UnityEditor.Android.AndroidJavaTools javaTools, System.String workingDir, System.String baseCommand) (at <5557b445b4634c46b2ec8376c040bd34>:0)
28
+
29
+ Rethrow as GradleInvokationException: Gradle initialization failed.
30
+
31
+ UnityEditor.Android.GradleWrapper.WarmupGradle (UnityEditor.Android.AndroidJavaTools javaTools, System.String workingDir, System.String baseCommand) (at <5557b445b4634c46b2ec8376c040bd34>:0)
32
+
33
+ UnityEditor.Android.PostProcessAndroidPlayer+<ExecuteWarmup>c__AnonStorey0.<>m__0 () (at <5557b445b4634c46b2ec8376c040bd34>:0)
34
+
35
+ System.Threading.ThreadHelper.ThreadStart_Context (System.Object state) (at <599589bf4ce248909b8a14cbe4a2034e>:0)
36
+
37
+ System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) (at <599589bf4ce248909b8a14cbe4a2034e>:0)
38
+
39
+ System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) (at <599589bf4ce248909b8a14cbe4a2034e>:0)
40
+
41
+ System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state) (at <599589bf4ce248909b8a14cbe4a2034e>:0)
42
+
43
+ System.Threading.ThreadHelper.ThreadStart () (at <599589bf4ce248909b8a14cbe4a2034e>:0)
44
+
45
+ UnityEngine.UnhandledExceptionHandler:<RegisterUECatcher>m__0(Object, UnhandledExceptionEventArgs)
46
+
47
+ Error occurred during initialization of VM
10
48
 
11
49
 
12
50
 
13
- ```
51
+ UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
14
52
 
15
- Grade build failed. See the Console for details.
53
+ Could not reserve enough space for object heap
16
-
17
- ```
18
54
 
19
55
 
20
56
 
21
- ### Buildをした際にコンソールに表示される内容
22
-
23
-
24
-
25
- ```
26
-
27
-
28
-
29
- FAILURE : Build failed with an exception.
30
-
31
-
32
-
33
- * Where :
34
-
35
- Build file 'C:\Users\xxxxx\OneDrive\�h�L�������g\Unity\Roulette\Temp\gradleOut\build.gradle' line : 24
36
-
37
-
38
-
39
- * What went wrong :
40
-
41
- A problem occurred evaluating root project 'gradleOut'
42
-
43
- > Failed to apply plugin [id'com.android.application']
44
-
45
- > 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)
46
-
47
-
48
-
49
- * Try :
50
-
51
- 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.
52
-
53
-
54
-
55
- * Get more help at http://help.gradle.org
56
-
57
-
58
-
59
- BUILD FAILED in 4s
57
+ UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
60
58
 
61
59
  CommandInvokationFailure: Gradle build failed.
62
60
 
@@ -68,85 +66,13 @@
68
66
 
69
67
 
70
68
 
71
- FAILURE: Build failed with an exception.
72
-
73
-
74
-
75
- * Where:
76
-
77
- Build file 'C:\Users\rukak\OneDrive\�h�L�������g\Unity\Roulette\Temp\gradleOut\build.gradle' line: 24
78
-
79
-
80
-
81
- * What went wrong:
82
-
83
- A problem occurred evaluating root project 'gradleOut'.
84
-
85
- > Failed to apply plugin [id 'com.android.application']
86
-
87
- > 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.
88
-
89
-
90
-
91
- * Try:
92
-
93
- 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.
94
-
95
-
96
-
97
- * Get more help at https://help.gradle.org
98
-
99
-
100
-
101
- BUILD FAILED in 4s
102
-
103
- CommandInvokationFailure: Gradle build failed.
104
-
105
- 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"
106
-
107
-
108
-
109
- stderr[
110
-
111
-
112
-
113
- FAILURE: Build failed with an exception.
114
-
115
-
116
-
117
- * Where:
118
-
119
- Build file 'C:\Users\rukak\OneDrive\�h�L�������g\Unity\Roulette\Temp\gradleOut\build.gradle' line: 24
120
-
121
-
122
-
123
- * What went wrong:
124
-
125
- A problem occurred evaluating root project 'gradleOut'.
126
-
127
- > Failed to apply plugin [id 'com.android.application']
128
-
129
- > 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.
130
-
131
-
132
-
133
- * Try:
134
-
135
- 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.
136
-
137
-
138
-
139
- * Get more help at https://help.gradle.org
140
-
141
-
142
-
143
- BUILD FAILED in 4s
144
-
145
69
  ]
146
70
 
147
71
  stdout[
148
72
 
73
+ Error occurred during initialization of VM
149
74
 
75
+ Could not reserve enough space for object heap
150
76
 
151
77
  ]
152
78
 
@@ -190,7 +116,7 @@
190
116
 
191
117
  UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
192
118
 
193
- UnityEditor.BuildPlayerWindow+BuildMethodException: 19 errors
119
+ UnityEditor.BuildPlayerWindow+BuildMethodException: 5 errors
194
120
 
195
121
  at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x00242] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:190
196
122
 
@@ -198,4 +124,6 @@
198
124
 
199
125
  UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
200
126
 
127
+
128
+
201
129
  ```