Conversion to Dalvik format failed: Unable to execute dex SDK Tools 22.3

Multiple dex files define Lcom/google/ads/AdRequest$ErrorCode

Latest ADT, Latest SDK Tools (22.3).

  • Eclipse, adb, and ddms not detecting Android Emulator
  • Getting touch coordinates not accurate in ImageView FloodFill Algorithm
  • how to create a custom theme and use it in android application
  • redirect to appstore or google play
  • Android SlidingTabs style tabs with round corners
  • How to connect Android to a database server
  • I Tried :

    1. Clean/rebuild
    2. Update Eclipse
    3. Delete bin and gen folders
    4. Restart Eclipse
    5. Mannually build with Ant
    6. Plus some other stuff

    All my projects are now targeting API lvl 19.

    I have no clue what to do.


    Related posts:

    How to manually include external aar package using new Gradle Android Build System
    Replace (or “Override”) String in Android Library Project
    Class 0 SMS (flash SMS) on Android
    How to disable the “save password” dialog on an Android WebView?
    HTML scrolling events in an Android WebView that's inside a ScrollView
    Ionic: How to display ion-item on multiple lines?
  • how to get gps location android
  • Best Java Datastructure to store key Value Pair
  • Spinner inner padding is larger on Android 6.0.1
  • Using SparseIntArray instead of HashMap <Integer, Integer> with putSeriazable
  • Android - iphone style tabhost
  • SharedPrefs is resetting after Setting Locale of the Android Application
  • 7 Solutions collect form web for “Conversion to Dalvik format failed: Unable to execute dex SDK Tools 22.3”

    The multiple dex files error just tell you that you are including the same class file from different sources. Restarting Eclipse or building with Ant will therefore not help as your project setup is just invalid.

    As you do not specify what jars you are using, there is no way to tell what is going on for sure.

    However, the newest Google Play library includes ads and my guess would be that you are including both Admob and Google Play Services which apparently contain the same classes. In that case you should migrate your code to use the Google Play Service ads and remove the admob jar from your project.

    *Right click on project name and select the Build Path.

    *Then select Configure Build Path.

    *From Java Build Path select the tab Order and Export.

    *Uncheck the .jar libraries.

    The error is generally due to multiplicity in libraries.

    Have you checked your xml files? I have the same Problem (and it is not solved yet) and I forgot to change the adView attribute from:




    then you should also chech your


    (dunno if this is right though…)

    Found this:

        <?xml version="1.0" encoding="utf-8"?>
    <LinearLayout xmlns:android=""
      < android:id="@+id/adView"



    Ok now I solved my Problem. I am such an Idiot…
    Well I integrated the AdMob SDK in the services library… I deleted it and everything was great again! So delete the services_lib, download it and import again that should work I guess. Good Luck!

    Worked fine after delete the “GoogleAdMobAdsSdk-6.4.1.jar” from my project.
    Dont forget to add the Google Play Services as Library to your app.

    It’s because Google Play Service has google Ads in it.
    That’s why you’re having multiple dex error.

    If you are using google play service as well, then there is a conflict.

    Eclipse project properties->Java build path->Order and export

    Uncheck Android private libraries.

    Do not use jar file and library project together of google play service lib in your project.

    Android Babe is a Google Android Fan, All about Android Phones, Android Wear, Android Dev and Android Games Apps and so on.