* 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 inthe thread from unity forumfinally 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 thepublish settingsthat needs to be set!
quotingRealPpTheBests' 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 toGrable (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 choosingProguardinstead 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 posthas 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.
Project Settings -> Player -> Publishing Settings -> Minify -> For Both Release and Debug = "Proguard" solved the problem (after importing Facebook SDK)– Ahmet HayrullahogluNov 23 '19 at 9:56
1
Glad to hear that my edited solution from September also worked in your case! That means it will probably work for more people.– Rasmus PulsNov 24 '19 at 19:26