質問編集履歴

1

Unityのバージョンアップでエラーメッセージが変わりました

2023/12/10 15:56

投稿

CPU
CPU

スコア13

test CHANGED
File without changes
test CHANGED
@@ -135,4 +135,111 @@
135
135
  https://qiita.com/tak001/items/e7a5f21742d463a37a39
136
136
  次に上のURLを見ましたがUnityのAndroid SDKを使用しているので私のエラーには当てはまりませんでした
137
137
 
138
-
138
+ ###追加情報
139
+ UnityのバージョンをUnity2023.2.2f1にすることでエラーメッセージが変わりましたので、そのエラーメッセージを下に記載しました。
140
+
141
+ エラーメッセージ1
142
+ ```
143
+ FAILURE: Build failed with an exception.
144
+
145
+ * Where:
146
+ Build file 'C:\Users\81907\numberblend\Library\Bee\Android\Prj\IL2CPP\Gradle\launcher\build.gradle' line: 1
147
+
148
+ * What went wrong:
149
+ A problem occurred evaluating project ':launcher'.
150
+ > Failed to apply plugin 'com.android.internal.application'.
151
+ > Cannot parse project property android.enableR8='' of type 'class java.lang.String' as boolean. Expected 'true' or 'false'.
152
+
153
+ * Try:
154
+ > Run with --stacktrace option to get the stack trace.
155
+ > Run with --info or --debug option to get more log output.
156
+ > Run with --scan to get full insights.
157
+
158
+ * Get more help at https://help.gradle.org
159
+
160
+ BUILD FAILED in 2s
161
+ ```
162
+
163
+ エラーメッセージ2
164
+ ```
165
+ CommandInvokationFailure: Gradle build failed.
166
+ C:\Program Files\Unity\Hub\Editor\2023.2.2f1\Editor\Data\PlaybackEngines\AndroidPlayer\OpenJDK\bin\java.exe -classpath "C:\Program Files\Unity\Hub\Editor\2023.2.2f1\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\gradle\lib\gradle-launcher-7.6.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx4096m" "bundleRelease"
167
+
168
+ Environment Variables:
169
+ USERDOMAIN = DESKTOP-7H0H2MI
170
+ ProgramFiles = C:\Program Files
171
+ TMP = C:\Users\81907\AppData\Local\Temp
172
+ PROCESSOR_ARCHITECTURE = AMD64
173
+ PROCESSOR_REVISION = 8c01
174
+ OneDriveConsumer = C:\Users\81907\OneDrive
175
+ OS = Windows_NT
176
+ ALLUSERSPROFILE = C:\ProgramData
177
+ PROCESSOR_IDENTIFIER = Intel64 Family 6 Model 140 Stepping 1, GenuineIntel
178
+ ProgramW6432 = C:\Program Files
179
+ USERPROFILE = C:\Users\81907
180
+ JAVA_HOME = C:\Program Files\Unity\Hub\Editor\2023.2.2f1\Editor\Data\PlaybackEngines\AndroidPlayer\OpenJDK
181
+ CommonProgramFiles = C:\Program Files\Common Files
182
+ DriverData = C:\Windows\System32\Drivers\DriverData
183
+ ComSpec = C:\WINDOWS\system32\cmd.exe
184
+ PSModulePath = C:\Program Files\WindowsPowerShell\Modules;C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules
185
+ EFC_39540 = 1
186
+ USERNAME = 81907
187
+ NUMBER_OF_PROCESSORS = 8
188
+ TEMP = C:\Users\81907\AppData\Local\Temp
189
+ Path = C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;c:\Program Files (x86)\Symantec\VIP Access Client\;C:\Users\81907\anaconda3;C:\Users\81907\anaconda3\Library\bin;C:\Users\81907\anaconda3\condabin;C:\Users\81907\anaconda3\Scripts;C:\Program Files\Git\cmd;C:\Users\81907\AppData\Local\Microsoft\WindowsApps;;C:\Users\81907\AppData\Local\Programs\Microsoft VS Code\bin
190
+ COMPUTERNAME = DESKTOP-7H0H2MI
191
+ PATHEXT = .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
192
+ SystemDrive = C:
193
+ windir = C:\WINDOWS
194
+ ZES_ENABLE_SYSMAN = 1
195
+ PUBLIC = C:\Users\Public
196
+ CommonProgramFiles(x86) = C:\Program Files (x86)\Common Files
197
+ APPDATA = C:\Users\81907\AppData\Roaming
198
+ OneDrive = C:\Users\81907\OneDrive
199
+ PROCESSOR_LEVEL = 6
200
+ CommonProgramW6432 = C:\Program Files\Common Files
201
+ ProgramFiles(x86) = C:\Program Files (x86)
202
+ SystemRoot = C:\WINDOWS
203
+ SESSIONNAME = Console
204
+ LOGONSERVER = \\DESKTOP-7H0H2MI
205
+ LOCALAPPDATA = C:\Users\81907\AppData\Local
206
+ HOMEPATH = \Users\81907
207
+ HOMEDRIVE = C:
208
+ USERDOMAIN_ROAMINGPROFILE = DESKTOP-7H0H2MI
209
+ ProgramData = C:\ProgramData
210
+ ORIGINAL_XDG_CURRENT_DESKTOP = undefined
211
+
212
+
213
+ stderr[
214
+
215
+ FAILURE: Build failed with an exception.
216
+
217
+ * Where:
218
+ Build file 'C:\Users\81907\numberblend\Library\Bee\Android\Prj\IL2CPP\Gradle\launcher\build.gradle' line: 1
219
+
220
+ * What went wrong:
221
+ A problem occurred evaluating project ':launcher'.
222
+ > Failed to apply plugin 'com.android.internal.application'.
223
+ > Cannot parse project property android.enableR8='' of type 'class java.lang.String' as boolean. Expected 'true' or 'false'.
224
+
225
+ * Try:
226
+ > Run with --stacktrace option to get the stack trace.
227
+ > Run with --info or --debug option to get more log output.
228
+ > Run with --scan to get full insights.
229
+
230
+ * Get more help at https://help.gradle.org
231
+
232
+ BUILD FAILED in 2s
233
+ ]
234
+ stdout[
235
+
236
+ ]
237
+ exit code: 1
238
+ ```
239
+
240
+ エラーメッセージ3
241
+ ```
242
+ Build completed with a result of 'Failed' in 72 seconds (72159 ms)
243
+ 2 errors
244
+ ```
245
+