Search code examples
javaandroideclipsebuildpath

Eclipse cannot build an apk, error with build path


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'


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.