Note that there are some explanatory texts on larger screens.

plurals
  1. POHow do I remove duplicate libraries appearing in Eclipse /bin/dexedLibs folder for Android dev?
    text
    copied!<p>I've seen this error reported several times, but none of the solutions I have read seem to help me. I'm getting the following error:</p> <pre><code>Dex Loader] Unable to execute dex: Multiple dex files define Landroid/annotation/SuppressLint; Conversion to Dalvik format failed: Unable to execute dex: Multiple dex files define Landroid/annotation/SuppressLint; </code></pre> <p>I did some digging around and I'm seeing these jar files in the /bin/dexedLibs folder:</p> <pre><code>android-support-v4-198bc014c99a20da45e22ed9cbf6acfc.jar annotations-548f83e84eb7d75caedbdd94af586669.jar annotations-c206a845ecee15ca74bd8ea29f715ccd.jar google-play-services-90fd245eca6bf1f2b0d2bb25ec3948cc.jar google-play-services_lib-6007bc6f3ac755b4866fa4a11c4e1704.jar guice-3.0-no_aop-12e0ac277316bccd821359aa41181ed8.jar javax.inject-384e1baadfa688e537ac642df7b9e932.jar jsr305-1.3.9-13c6c964842f2bc7643c588e6fdc4754.jar ormlite-android-4.47-185a20bcc9d996b5de6d6ca2aff0d0d5.jar ormlite-core-4.47-42acd47179ed45763a3ec81ac92a2f20.jar roboguice-2.0-f9de91c4687c33313255e5dd6fd324b3.jar simple-xml-2.7.1-d80fa5a8427ec77885976924091eb340.jar teklibrary-core-1.0.0-SNAPSHOT-cd7381a5468da36c532837d7604e95b3.jar </code></pre> <p>See the duplicate <code>annotations</code> and <code>google_play_services</code> jar files. This is what my eclipse looks like. I don't know how <code>Google Play Services</code> and <code>Annotations</code> are appearing in both <code>Android Private Libraries</code> and <code>Android Dependencies</code>.</p> <p><img src="https://i.stack.imgur.com/UZz03.png" alt="enter image description here"></p> <p>This is where my <code>Google Play Services</code> is getting added to the project. The reason I have it added that way was due to an issue with the following line in code in AndroidManifest.xml where <code>@integer/google_play_services_version</code> wasn't being recognized.</p> <pre><code>&lt;meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" /&gt; </code></pre> <p><img src="https://i.stack.imgur.com/wmzON.png" alt="enter image description here"></p> <p>In Project Properties | Java Build Path | Order and Export, I have unchecked <code>Android Dependencies</code>.</p> <p><img src="https://i.stack.imgur.com/sXQaf.png" alt="enter image description here"></p> <hr> <p><strong>So the question, anyone know how to resolve this issue:</strong></p> <pre><code>[2013-11-29 10:30:49 - TekJobsAppAndroid2] Dx trouble writing output: already prepared [2013-11-29 10:30:49 - Dex Loader] Unable to execute dex: Multiple dex files define Landroid/annotation/SuppressLint; [2013-11-29 10:30:49 - TekJobsAppAndroid2] Conversion to Dalvik format failed: Unable to execute dex: Multiple dex files define Landroid/annotation/SuppressLint; </code></pre> <p>Thanks in advance</p> <p>Please note that I consistently do the following:</p> <ul> <li>Delete the contents of the BIN folder</li> <li>Clean Project</li> <li>Build Project</li> </ul>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload