{"id":4682,"date":"2014-03-30T14:42:05","date_gmt":"2014-03-30T14:42:05","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/conversion-to-dalvik-format-failed-with-error-1-with-a-scary-message-in-the-console-view-collection-of-common-programming-errors\/"},"modified":"2014-03-30T14:42:05","modified_gmt":"2014-03-30T14:42:05","slug":"conversion-to-dalvik-format-failed-with-error-1-with-a-scary-message-in-the-console-view-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/conversion-to-dalvik-format-failed-with-error-1-with-a-scary-message-in-the-console-view-collection-of-common-programming-errors\/","title":{"rendered":"Conversion to Dalvik format failed with error 1 with a scary message in the Console view-Collection of common programming errors"},"content":{"rendered":"<p>I&#8217;ve seen a few questions with this topic, but when I search for the other part I have in my error, I don&#8217;t find anything, so I decided to post a question with the full explanation.<\/p>\n<p>No errors are recognized in my code. Nowhere. All libraries are added, external library projects are successfully linked. There is no indication that anything should go wrong with a launch.<\/p>\n<p>Yet, when I launch the application &#8211; Run, compile and build (automatically) &#8211; I get a pop up message stating that my project contains error(s) and that I should please fix them before attempting to launch the application again.<\/p>\n<p>So I fiddle around with some properties, my colleague discovers that &#8220;<code>Android Private Libraries<\/code>&#8221; has to be checked in <code>Properties -&gt; Java Build Path -&gt; Order and Export<\/code> (which I&#8217;ve checked an unchecked along with the other check boxes, before). But when I run the application &#8211; same pop up, and the following in the <code>Console<\/code> view: (scary message)<\/p>\n<pre><code>[2013-06-22 20:55:03 - TheApplication] Dx \ntrouble processing \"java\/sql\/Savepoint.class\":\n\nIll-advised or mistaken usage of a core class (java.* or javax.*)\nwhen not building a core library.\n\nThis is often due to inadvertently including a core library file\nin your application's project, when using an IDE (such as\nEclipse). If you are sure you're not intentionally defining a\ncore class, then this is the most likely explanation of what's\ngoing on.\n\nHowever, you might actually be trying to define a class in a core\nnamespace, the source of which you may have taken, for example,\nfrom a non-Android virtual machine project. This will most\nassuredly not work. At a minimum, it jeopardizes the\ncompatibility of your app with future versions of the platform.\nIt is also often of questionable legality.\n\nIf you really intend to build a core library -- which is only\nappropriate as part of creating a full virtual machine\ndistribution, as opposed to compiling an application -- then use\nthe \"--core-library\" option to suppress this error message.\n\nIf you go ahead and use \"--core-library\" but are in fact\nbuilding an application, then be forewarned that your application\nwill still fail to build or run, at some point. Please be\nprepared for angry customers who find, for example, that your\napplication ceases to function once they upgrade their operating\nsystem. You will be to blame for this problem.\n\nIf you are legitimately using some code that happens to be in a\ncore package, then the easiest safe alternative you have is to\nrepackage that code. That is, move the classes in question into\nyour own package namespace. This means that they will never be in\nconflict with core system classes. JarJar is a tool that may help\nyou in this endeavor. If you find that you cannot do this, then\nthat is an indication that the path you are on will ultimately\nlead to pain, suffering, grief, and lamentation.\n\n[2013-06-22 20:55:03 - TheApplication] Dx 1 error; aborting\n[2013-06-22 20:55:03 - TheApplication] Conversion to Dalvik format failed with error 1\n<\/code><\/pre>\n<p>Has anyone gotten this message before? Why am I getting it? Where should I go look for &#8220;hidden libraries&#8221; or &#8220;internal libraries&#8221; that I might not even be aware of?<\/p>\n<p>I&#8217;ve checked with my boss and colleague &#8211; they all have the same libraries in the project (since we&#8217;re working on it together we obviously have to have the same things). So where should I go looking to fix this problem?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve seen a few questions with this topic, but when I search for the other part I have in my error, I don&#8217;t find anything, so I decided to post a question with the full explanation. No errors are recognized in my code. Nowhere. All libraries are added, external library projects are successfully linked. There [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-4682","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/4682","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=4682"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/4682\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=4682"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=4682"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=4682"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}