I’m currently experiencing a Building DEX failed error on a project. To my knowledge, java is up to date.
I’m getting the following error log from Unity during the post process phase of the build process.
If anyone has any experience with this, or any insight, help would be greatly appreciated. Thank you!
The solution is you need to update the java version in your machine… Because the same error occurred to me… and i just download the java for mac os X and updated. now its worked well.
Well im gonna be honest i have the exactly same problem and my java is updated, and one way i found to resolve this issue, is simply to: 1- Close Any chrome window opened LOL thats right;
2- If the above doens`t work i close monoDevelop and works for 90% of the times.
3-If it still dont want to work simply restart unity and do step 1;
I don`t know why this happens but for me this always works removing the DEX error on Build :s;
I’ve run into this a couple times recently, so wanted to add my findings.
My particular issue is related to Prime31 Plug-Ins. But more exactly I think the fact that sometimes there are conflicting jar files in my Plug-ins/Android folder.
I usually get this when I update my Prime31 Plug-ins and there seem to be old .jar files in the plug-ins/android folder. If I clear out the old ones and reinstall the plug-in this fixes it.
i had the same issue. the problem was, that i worked with an older version of unity (3.5) and the actual android sdk version did´nt fit to this old unity version.
upgrade unity to newest version and the problem should be solved. (it worked with me)