質問編集履歴
2
修正加筆
test
CHANGED
File without changes
|
test
CHANGED
@@ -49,3 +49,261 @@
|
|
49
49
|
gradle6-9-1
|
50
50
|
|
51
51
|
それ以外のSDKやNDK、JDKはunityhubで入れたから、バージョンとかよくわかりません。
|
52
|
+
|
53
|
+
|
54
|
+
|
55
|
+
### 例外内容
|
56
|
+
|
57
|
+
```ここに言語を入力
|
58
|
+
|
59
|
+
CommandInvokationFailure: Gradle build failed.
|
60
|
+
|
61
|
+
C:/Users/81909/Desktop/unity/2019.4.20f1/Editor/Data/PlaybackEngines/AndroidPlayer\OpenJDK\bin\java.exe -classpath "C:\Users\81909\Desktop\unity\2019.4.20f1\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\gradle\lib\gradle-launcher-6.9.1.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx128m" "assembleDebug"
|
62
|
+
|
63
|
+
|
64
|
+
|
65
|
+
stderr[
|
66
|
+
|
67
|
+
注意:C:\Users\81909\Documents\unity\ChartMaker\Temp\gradleOut\unityLibrary\src\main\java\com\unity3d\player\UnityPlayerActivity.javaは非推奨のAPIを使用またはオーバーライドしています。
|
68
|
+
|
69
|
+
注意:詳細は、-Xlint:deprecationオプションを指定して再コンパイルしてください。
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
FAILURE: Build failed with an exception.
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
* What went wrong:
|
78
|
+
|
79
|
+
Execution failed for task ':launcher:packageDebug'.
|
80
|
+
|
81
|
+
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
|
82
|
+
|
83
|
+
> java.lang.OutOfMemoryError (no error message)
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
* Try:
|
88
|
+
|
89
|
+
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.
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
* Get more help at https://help.gradle.org
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
BUILD FAILED in 59s
|
98
|
+
|
99
|
+
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
|
100
|
+
|
101
|
+
]
|
102
|
+
|
103
|
+
stdout[
|
104
|
+
|
105
|
+
Starting a Gradle Daemon, 2 incompatible and 2 stopped Daemons could not be reused, use --status for details
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
> Configure project :launcher
|
110
|
+
|
111
|
+
WARNING: DSL element 'useProguard' is obsolete and will be removed soon. Use 'android.enableR8' in gradle.properties to switch between R8 and Proguard..
|
112
|
+
|
113
|
+
WARNING: DSL element 'useProguard' is obsolete and will be removed soon. Use 'android.enableR8' in gradle.properties to switch between R8 and Proguard..
|
114
|
+
|
115
|
+
|
116
|
+
|
117
|
+
> Task :launcher:preBuild UP-TO-DATE
|
118
|
+
|
119
|
+
> Task :unityLibrary:preBuild UP-TO-DATE
|
120
|
+
|
121
|
+
> Task :unityLibrary:preDebugBuild UP-TO-DATE
|
122
|
+
|
123
|
+
> Task :launcher:preDebugBuild UP-TO-DATE
|
124
|
+
|
125
|
+
> Task :unityLibrary:compileDebugAidl NO-SOURCE
|
126
|
+
|
127
|
+
> Task :unityLibrary:packageDebugRenderscript NO-SOURCE
|
128
|
+
|
129
|
+
> Task :unityLibrary:compileDebugRenderscript NO-SOURCE
|
130
|
+
|
131
|
+
> Task :launcher:generateDebugBuildConfig
|
132
|
+
|
133
|
+
> Task :unityLibrary:generateDebugBuildConfig
|
134
|
+
|
135
|
+
> Task :launcher:compileDebugAidl NO-SOURCE
|
136
|
+
|
137
|
+
> Task :launcher:compileDebugRenderscript NO-SOURCE
|
138
|
+
|
139
|
+
> Task :unityLibrary:generateDebugResValues
|
140
|
+
|
141
|
+
> Task :unityLibrary:generateDebugResources
|
142
|
+
|
143
|
+
> Task :launcher:mainApkListPersistenceDebug
|
144
|
+
|
145
|
+
> Task :launcher:generateDebugResValues
|
146
|
+
|
147
|
+
> Task :launcher:generateDebugResources
|
148
|
+
|
149
|
+
> Task :launcher:createDebugCompatibleScreenManifests
|
150
|
+
|
151
|
+
> Task :launcher:extractDeepLinksDebug
|
152
|
+
|
153
|
+
> Task :launcher:mergeDebugShaders
|
154
|
+
|
155
|
+
> Task :launcher:compileDebugShaders
|
156
|
+
|
157
|
+
> Task :launcher:generateDebugAssets
|
158
|
+
|
159
|
+
> Task :launcher:processDebugJavaRes NO-SOURCE
|
160
|
+
|
161
|
+
> Task :unityLibrary:packageDebugResources
|
162
|
+
|
163
|
+
> Task :unityLibrary:extractDeepLinksDebug
|
164
|
+
|
165
|
+
> Task :unityLibrary:compileDebugLibraryResources
|
166
|
+
|
167
|
+
> Task :unityLibrary:mergeDebugShaders
|
168
|
+
|
169
|
+
> Task :unityLibrary:compileDebugShaders
|
170
|
+
|
171
|
+
> Task :unityLibrary:generateDebugAssets
|
172
|
+
|
173
|
+
> Task :unityLibrary:packageDebugAssets
|
174
|
+
|
175
|
+
> Task :unityLibrary:processDebugJavaRes NO-SOURCE
|
176
|
+
|
177
|
+
> Task :launcher:checkDebugDuplicateClasses
|
178
|
+
|
179
|
+
> Task :unityLibrary:mergeDebugJniLibFolders
|
180
|
+
|
181
|
+
> Task :unityLibrary:processDebugManifest
|
182
|
+
|
183
|
+
> Task :unityLibrary:bundleLibResDebug
|
184
|
+
|
185
|
+
> Task :unityLibrary:parseDebugLocalResources
|
186
|
+
|
187
|
+
> Task :launcher:mergeDebugAssets
|
188
|
+
|
189
|
+
> Task :launcher:processDebugManifest
|
190
|
+
|
191
|
+
> Task :launcher:mergeDebugJniLibFolders
|
192
|
+
|
193
|
+
> Task :launcher:validateSigningDebug
|
194
|
+
|
195
|
+
> Task :launcher:mergeDebugResources
|
196
|
+
|
197
|
+
> Task :launcher:mergeDebugJavaResource
|
198
|
+
|
199
|
+
> Task :unityLibrary:mergeDebugNativeLibs
|
200
|
+
|
201
|
+
|
202
|
+
|
203
|
+
> Task :unityLibrary:stripDebugDebugSymbols
|
204
|
+
|
205
|
+
WARNING: Compatible side by side NDK version was not found. Default is 20.0.5594570.
|
206
|
+
|
207
|
+
Compatible side by side NDK version was not found. Default is 20.0.5594570.
|
208
|
+
|
209
|
+
Unable to strip the following libraries, packaging them as they are: libMonoPosixHelper.so, libmain.so, libmonobdwgc-2.0.so, libunity.so.
|
210
|
+
|
211
|
+
|
212
|
+
|
213
|
+
> Task :unityLibrary:copyDebugJniLibsProjectOnly
|
214
|
+
|
215
|
+
> Task :unityLibrary:javaPreCompileDebug
|
216
|
+
|
217
|
+
> Task :unityLibrary:generateDebugRFile
|
218
|
+
|
219
|
+
> Task :launcher:processDebugResources
|
220
|
+
|
221
|
+
> Task :launcher:mergeDebugNativeLibs
|
222
|
+
|
223
|
+
|
224
|
+
|
225
|
+
> Task :launcher:stripDebugDebugSymbols
|
226
|
+
|
227
|
+
WARNING: Compatible side by side NDK version was not found. Default is 20.0.5594570.
|
228
|
+
|
229
|
+
Compatible side by side NDK version was not found. Default is 20.0.5594570.
|
230
|
+
|
231
|
+
Unable to strip the following libraries, packaging them as they are: libMonoPosixHelper.so, libmain.so, libmonobdwgc-2.0.so, libunity.so.
|
232
|
+
|
233
|
+
|
234
|
+
|
235
|
+
> Task :launcher:desugarDebugFileDependencies
|
236
|
+
|
237
|
+
> Task :launcher:mergeExtDexDebug
|
238
|
+
|
239
|
+
|
240
|
+
|
241
|
+
> Task :unityLibrary:compileDebugJavaWithJavac
|
242
|
+
|
243
|
+
|
244
|
+
|
245
|
+
> Task :unityLibrary:bundleLibRuntimeDebug
|
246
|
+
|
247
|
+
> Task :unityLibrary:bundleLibCompileDebug
|
248
|
+
|
249
|
+
> Task :launcher:javaPreCompileDebug
|
250
|
+
|
251
|
+
> Task :launcher:compileDebugJavaWithJavac
|
252
|
+
|
253
|
+
> Task :launcher:compileDebugSources
|
254
|
+
|
255
|
+
> Task :launcher:dexBuilderDebug
|
256
|
+
|
257
|
+
> Task :launcher:mergeDexDebug
|
258
|
+
|
259
|
+
> Task :launcher:packageDebug FAILED
|
260
|
+
|
261
|
+
|
262
|
+
|
263
|
+
Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
|
264
|
+
|
265
|
+
Use '--warning-mode all' to show the individual deprecation warnings.
|
266
|
+
|
267
|
+
See https://docs.gradle.org/6.9.1/userguide/command_line_interface.html#sec:command_line_warnings
|
268
|
+
|
269
|
+
44 actionable tasks: 44 executed
|
270
|
+
|
271
|
+
]
|
272
|
+
|
273
|
+
exit code: 1
|
274
|
+
|
275
|
+
UnityEditor.Android.Command.WaitForProgramToRun (UnityEditor.Utils.Program p, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <d76da2c9a45b4b02b93f56ae560b1d44>:0)
|
276
|
+
|
277
|
+
UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <d76da2c9a45b4b02b93f56ae560b1d44>:0)
|
278
|
+
|
279
|
+
UnityEditor.Android.Command.Run (System.String command, System.String args, System.String workingdir, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <d76da2c9a45b4b02b93f56ae560b1d44>:0)
|
280
|
+
|
281
|
+
UnityEditor.Android.AndroidJavaTools.RunJava (System.String args, System.String workingdir, System.Action`1[T] progress, System.String error) (at <d76da2c9a45b4b02b93f56ae560b1d44>:0)
|
282
|
+
|
283
|
+
UnityEditor.Android.GradleWrapper.Run (UnityEditor.Android.AndroidJavaTools javaTools, System.String workingdir, System.String task, System.Action`1[T] progress) (at <d76da2c9a45b4b02b93f56ae560b1d44>:0)
|
284
|
+
|
285
|
+
Rethrow as GradleInvokationException: Gradle build failed
|
286
|
+
|
287
|
+
UnityEditor.Android.GradleWrapper.Run (UnityEditor.Android.AndroidJavaTools javaTools, System.String workingdir, System.String task, System.Action`1[T] progress) (at <d76da2c9a45b4b02b93f56ae560b1d44>:0)
|
288
|
+
|
289
|
+
UnityEditor.Android.PostProcessor.Tasks.BuildGradleProject.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <d76da2c9a45b4b02b93f56ae560b1d44>:0)
|
290
|
+
|
291
|
+
UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <d76da2c9a45b4b02b93f56ae560b1d44>:0)
|
292
|
+
|
293
|
+
Rethrow as BuildFailedException: Exception of type 'UnityEditor.Build.BuildFailedException' was thrown.
|
294
|
+
|
295
|
+
UnityEditor.Android.PostProcessor.CancelPostProcess.AbortBuild (System.String title, System.String message, System.Exception ex) (at <d76da2c9a45b4b02b93f56ae560b1d44>:0)
|
296
|
+
|
297
|
+
UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <d76da2c9a45b4b02b93f56ae560b1d44>:0)
|
298
|
+
|
299
|
+
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 <d76da2c9a45b4b02b93f56ae560b1d44>:0)
|
300
|
+
|
301
|
+
UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <d76da2c9a45b4b02b93f56ae560b1d44>:0)
|
302
|
+
|
303
|
+
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 <8d21067e8d9c494db25a2b2485216e63>:0)
|
304
|
+
|
305
|
+
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
|
306
|
+
|
307
|
+
|
308
|
+
|
309
|
+
```
|
1
書き損じがありました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
### やりたいこと
|
2
|
+
|
3
|
+
unityで、プラットフォームがandroidでapkファイルをビルドしたい。
|
4
|
+
|
5
|
+
だけどエラーが起こってできない。
|
6
|
+
|
1
7
|
### ビルド時に出ているエラー
|
2
8
|
|
3
9
|
```ここに言語を入力
|
@@ -14,10 +20,32 @@
|
|
14
20
|
|
15
21
|
④Build completed with a result of 'Failed' in 25 seconds (24947 ms)
|
16
22
|
|
17
|
-
UnityEditor.BuildPlayerWindow+BuildMethodException: 4 errors
|
23
|
+
⑤UnityEditor.BuildPlayerWindow+BuildMethodException: 4 errors
|
18
24
|
|
19
25
|
```
|
20
26
|
|
21
27
|
### 試していること
|
22
28
|
|
29
|
+
①gradleを新しくした。gradle6-9-1にした。gradleをダウンロードして、unityのgradleの向き先を設定。でも効果なし
|
30
|
+
|
31
|
+
②android studioってやつに、unityでエクスポートした何かのデータをimport
|
32
|
+
|
33
|
+
しかし、これはandroid studioで出来なさそう。welcome画面にある”import project”を使うらしいが、画面にない。別のやり方わからん
|
34
|
+
|
35
|
+
③スクリプティングバックエンドをILL2PPにしててみた
|
36
|
+
|
37
|
+
IL2CPPのexeが動かないエラーでダメ
|
38
|
+
|
39
|
+
④player settings>player>android>公開設定>ビルド
|
40
|
+
|
41
|
+
Custom Mail Gradle TemplateとCustom launcher Gradle Templateに☑
|
42
|
+
|
43
|
+
でもダメ
|
44
|
+
|
45
|
+
### 環境
|
46
|
+
|
47
|
+
unity2019.4.20
|
48
|
+
|
23
|
-
gradle
|
49
|
+
gradle6-9-1
|
50
|
+
|
51
|
+
それ以外のSDKやNDK、JDKはunityhubで入れたから、バージョンとかよくわかりません。
|