Question

I am using the newest version of eclipse. When I try project -> clean in console I get these two errors:

[2014-04-15 16:17:27 - Dex Loader] Unable to execute dex: Multiple dex files define Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompat$AccessibilityServiceInfoVersionImpl;
[2014-04-15 16:17:27 - MyFirstTryWithEQ1] Conversion to Dalvik format failed: Unable to execute dex: Multiple dex files define Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompat$AccessibilityServiceInfoVersionImpl;

I spend quite a lot of time to find way out, but unsuccessful.

P.S. Looks like it is because of /bin in the build path, but I don't know how to remove it. Also I am getting this error: the container 'android dependencies' references non existing '/Users/gintas/Documents/workspace5/google-play-services_lib/bin/google-play-services_lib.jar'

Was it helpful?

Solution

This will be a finally fix.

  1. Close eclipse.
  2. Delete bin folder inside your project folder.
  3. Start eclipse and clean your project.
  4. Now run and the problem should begone.

Even now you are getting the same error.Please consider updating the Eclipse IDE.

OTHER TIPS

that because you have a duplicated library file. you may remove the duplicated library from your libs folder

Just open Expand the project's root node.Show in eclipse

You can now see a Bin. Just Expand it Now you can see a folder named "dexedLibs". Just Expand that node. You can see some libraries. Just check for any duplicate entries. (Please check it carefully and make sure you are not deleting any unduplicate entry).

Eg:- You can find like this.

bin/dexedLibs/android-support-v4-773c629b8eb1e89bdd821a2c07db8998.jar

If you have found any duplicate entries.Just delete that and rebuild your project.

It seems this will help you.

Just delete the support-v4...jar in the dexedLibs folder. Because there are two libraries for same functioning. For some eloboration delete the library file that is marked in the below picture.enter image description here

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top