Back in 2014 I blogged about how to solve the “Unable to convert classes into dex format” Unity error.
I thought I’d post a follow up as I had the same error recently but with a slightly different message and cause. The error was:
UNEXPECTED TOP-LEVEL EXCEPTION:
java.lang.IllegalArgumentException: already added:
I looked for ExceptionReporter and found it in:
The original error report also said:
Created unique file for imported asset as file exists with different
When the asset is renamed it causes the problem. However, in the end I found that the problem was caused by these duplicate files:
So, you can fix the issue by removing one of the files (or choosing a different architecture if that’s appropriate for your project).