블로그 이미지
Every unexpected event is a path to learning for you.

카테고리

분류 전체보기 (2366)
Unity3D (587)
Programming (473)
Unreal (4)
Gamebryo (56)
Tip & Tech (191)
협업 (36)
3DS Max (3)
Game (12)
Utility (117)
Etc (92)
Link (31)
Portfolio (19)
Subject (90)
iOS,OSX (38)
Android (13)
Linux (5)
잉여 프로젝트 (2)
게임이야기 (1)
Memories (20)
Interest (37)
Thinking (37)
한글 (26)
PaperCraft (5)
Animation (408)
Wallpaper (2)
재테크 (19)
Exercise (3)
나만의 맛집 (3)
냥이 (10)
육아 (16)
Total1,365,181
Today9
Yesterday373
Statistics Graph

달력

« » 2020.2
            1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29

공지사항

태그목록

Windows7 64bit

Unity 2018.4.13f1

Firebase 6.9.0

 

Firebase 6.9.0 넣고 나온 또 다른 빌드 에러..


CommandInvokationFailure: Gradle build failed. 

...

stderr[

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':packageRelease'.
> 1 exception was raised by workers:
  java.io.UncheckedIOException: java.io.IOException: Failed to obtain compression information for entry

 


해결책은 아래와 같다.

Minify-Release/Debug가 기본 None인데, 업데이트 되면서 값을 넣어야 되나보다.

Proguard 이야기도 있긴한데, 우선 아래 보이는대로 Gradle (Experimental) 로 바꾸니 빌드가 잘 된다.

 


 

Someone in the thread from unity forum finally posted a working solution. I'm gonna share it here as well so hopefully everyone who lands on the question with this issue will not have to spend 30 hours blindfolded, resolving dex merging conflicts like I did.

Turns out that with new new version there is a few more options in the publish settings that needs to be set!

quoting RealPpTheBest s' answer

Go to player settings > Project Settings > Minify, in there, there will be an option of Release, set it to Gradle .

For some reason when choosing gradle build these two are not automatically toggled, and maybe in some cases they don't have to be. But setting minify to Grable (experimental) completely resolved all the build errors I was getting after updating unity.

EDIT: september-2019 - Solution above should still work, but:

I have lately been experimenting with choosing Proguard instead of the experimental Gradle minifier (can be selected in the dorpdown as well). When configured correctly proguard will also resolve your DEX limitation errors, and get rid of unused code and even compress your build size even more.

This post has a quite throughly detailed guide on how to enable and configure it. Keep in mind though, that the configuration will be unique to which dependencies you are using, so you will have to read up and do some custom configuration here most likely.

shareedit

edited Sep 26 '19 at 7:39

 

answered Jun 24 '19 at 15:46

Rasmus Puls

8996 silver badges19 bronze badges

 

[출처]

https://stackoverflow.com/questions/56623107/unity-gradle-build-error-while-merging-dex-archives/58012656#58012656

 

Unity gradle build - Error while merging dex archives

I'm trying to compile my project using "Build App Bundle (Google Play)" for the first time. However I am getting an error while merging dex archives. I believe it is due to some of my plugins are u...

stackoverflow.com

 

[참조]

https://forum.unity.com/threads/gradle-shenanagains.602599/

 

Gradle Shenanagains?

Honestly, I have no idea what's going wrong here. CommandInvokationFailure: Gradle build failed. C:\Program...

forum.unity.com

 

 
Posted by blueasa

댓글을 달아 주세요