Android compilation error when "Generating classes.dex...."
<p>When setting up my machine to work on Android I can't get the code to "compile" or maybe it is compiling and stops at some other process because it gives the error when it says <strong>"Generating classes.dex"</strong>.</p>

<p>The error I get is the following:</p>

<pre><code>Information: Note: Some input files use unchecked or unsafe operations.
Information: Note: Recompile with -Xlint:unchecked for details.
Information: Compilation completed with 12 errors and 2 warnings
Information: 12 errors
Information: 1 warning
Error: (org.joda.time.DateTimeZone$1) that doesn't come with an
Error: associated EnclosingMethod attribute. This class was probably produced by a
Error: compiler that did not target the modern .class file format. The recommended
Error: solution is to recompile the class from source, using an up-to-date compiler
Error: and without specifying any "-target" type options. The consequence of ignoring
Error: this warning is that reflective operations on this class will incorrectly
Error: indicate that it is *not* an inner class.
Error: (junitx.extensions.TestSetup$1) that doesn't come with an
Error: (junitx.ant.TestClassValidatorTask$1) that doesn't come with an
Error: (junitx.util.AbstractSuiteBuilder$1) that doesn't come with an
Error: (junitx.framework.TestSuite$1) that doesn't come with an
Error: (junitx.tool.TestClassValidator$1) that doesn't come with an
Warning: warning: Ignoring InnerClasses attribute for an anonymous inner class
</code></pre>

<p>The interesting thing is that this code compiles correctly in another computer we have that was setup looong time ago and nobody remembers what was done.</p>

<p>I've googled like crazy and everybody says you need to recompile from source JodaTime and whatever, but this can't possibly be the case because the same code (copied and pasted or downloaded from version control) works flawlessly on another machine, so there has to be something about my environment that is causing this, but I have no idea what to look for.</p>

<p>Any experts out there that recognize this type of error ?<br/>
Have you had this happen to you ? How did you fix it ??</p>

<p>Please help... </p>

<p>Notes: <br/>
- Using intellij <br/>
- Compiling for Android 1.6</p>

<p>Before somebody points it out I am aware a similar question has been asked before. Here for example: <a href="http://stackoverflow.com/questions/3481869/recompile-jodatime">Recompile jodatime?</a>. But in that case the proposed solution was to recompile the JodaTime sources. I believe this is not the case here since the code works in one computer and not the other.</p>
