title: Android project: Conversion to Dalvik format failed with error 1
body: <p>I am writing an android application using eclipse and am trying to use jar files I generated from another eclipse (not android) project I wrote. However, when I try to run my android application, I get the following error message:</p>
  <blockquote>
  <p>[2014-05-15 18:42:25 - ResearchNotebook] Dx 1 error; aborting</p>
  <p>[2014-05-15 18:42:25 - ResearchNotebook] Conversion to Dalvik format failed with error 1</p>
  </blockquote>
  <p>which is preceeded by a longer error message.</p>
  <p>I looked at the following question (<a href="https://stackoverflow.com/questions/7661559/ill-advised-or-mistaken-usage-of-a-core-class-java-or-javax-when-not-build">Ill-advised or mistaken usage of a core class (java.* or javax.*) when not building a core library</a>), and but am not sure how I would reconfigure the eclipse IDE so that rt.jar and android.jar are not being passed to dx.</p>
  <p>However, I wrote non android java code within the same project using the jar and ran it in the console. It worked perfectly fine. The problem only arises when I try to use the jar for the classes pertaining to the android application.</p>
  <p>At this point, I have tried many different alternatives, including cleaning the project, deleting the jars from the buildpath and adding them again, and changing order and export according to the following site: <a href="http://tools.android.com/recent/dealingwithdependenciesinandroidprojects" rel="nofollow noreferrer">http://tools.android.com/recent/dealingwithdependenciesinandroidprojects</a>.</p>
  <p>Is there something else I should have done when generating the jar from my eclipse (non android) project? I have really hit a wall this problem and am at a loss about how to proceed.</p>