Hi guys,
I have a problem with gradle build. They fail with Unity 2018.3 for both app bundle and simple apk.
No problems with Unity 2018.2.18.
1)I have a blank window when the build fails
2)I have a text wall in the console about the “Execution failed for task ‘:transformDexArchiveWithExternalLibsDexMergerForRelease’.”
I’m using Unity ADS, Unity IAP; Unity ANALITYCS; Facebook SDK + Facebook Smart (Unity Asset Store plugin for leaderboards).
With Unity 2018.2.18 I can create android builds without problems.
I have already tried to use Play Services Resolver (Force resolve) withous success.
What is the problem?
By the way,
I have created a new project with Unity 2018.3 and imported all the plugins above.
No android manifest build errors or Dex related build fails. Honestly I don’t know why I had all those builds errors with the original unity project (and only with unity 2018.3).
I have successful created both builds - apk and aab - with the new project and only the plugins.
After that I have copied/pasted all the files in the “Assets” folder from the old project to the new.
I have successful created both builds - apk and aab - with the new project and all the assets.
This is not a real fix for the problem but only a workaround, and now I can continue to work to my project.
I don’t know what’s happened with the old project.
I hope this post help someone somehow.
God bless you.