Android ClassNotFoundException: Didn't find class on path: Dexpathlist
<p>I am facing the below error, and I have tried almost each and every solution from Stackoverflow. I am new to android, so may be I am not understanding the cause.
I am testing a libgdx project from the by following the instructions:    <a href="https://github.com/libgdx/libgdx/wiki/Setting-up-your-Development-Environment-%28Eclipse%2C-Intellij-IDEA%2C-NetBeans%29" rel="nofollow noreferrer">https://github.com/libgdx/libgdx/wiki/Setting-up-your-Development-Environment-%28Eclipse%2C-Intellij-IDEA%2C-NetBeans%29</a></p>

<p>I installed the the below mentioned tools in the sequence:</p>

<ol>
<li>JDK (java version 1.8.0.73)</li>
<li>Eclipse IDE for Java Developers Version: Mars.2 Release (4.5.2).</li>
<li>SDK (I have SDK tools 24.4.1 and SDK build tools 23.0.2 and 23.0.1)</li>
<li>Android development tools for Eclipse from the URL within eclipse: <a href="https://dl-ssl.google.com/android/eclipse/" rel="nofollow noreferrer">https://dl-ssl.google.com/android/eclipse/</a></li>
<li>Gradle 2.11 - I unzipped gradle-all-2.11.zip and kept on my local machine.</li>
</ol>

<p>Now, when I generate a very basic sample libgdx project using gdx-setup.jar, and name the package my-gdx-game, it created a desktop version(java application) and an android version(android application)</p>

<p>I use Build tools V 23.0.1 while building the project through the jar. My eclipse screen looks like this:</p>

<p><a href="https://i.stack.imgur.com/dTgpP.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dTgpP.jpg" alt="Eclipse"></a>
When I right click on my-gdx-game-desktop and Run as Java application, it runs successfully and displays and image(project is all about displaying an image).</p>

<p>Now, for the android project, I created a AVD - Nexus 5, Android 4.4.2(api 19), CPU: ARM(armeabi-v7a), use host GPU. My manifest.xml file is as follows:
    
    </p>

<pre><code>&lt;uses-sdk android:minSdkVersion="8" android:targetSdkVersion="23" /&gt;

&lt;application
    android:allowBackup="true"
    android:icon="@drawable/ic_launcher"
    android:label="@string/app_name"
    android:theme="@style/GdxTheme" &gt;
    &lt;activity
        android:name="com.mygdx.game.AndroidLauncher"
        android:label="@string/app_name" 
        android:screenOrientation="landscape"
            android:configChanges="keyboard|keyboardHidden|orientation|screenSize"&gt;
        &lt;intent-filter&gt;
            &lt;action android:name="android.intent.action.MAIN" /&gt;
            &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
        &lt;/intent-filter&gt;
    &lt;/activity&gt;
&lt;/application&gt;

&lt;/manifest&gt;
</code></pre>

<p>Project> Properties> Android: only Android 4.4.2 is selected(API 19)</p>

<p>Now, when I right click on project>run as> android application, the AVD opens up and the below error is generated:</p>

<pre><code>03-08 13:44:35.110: W/dalvikvm(1968): Unable to resolve superclass of Lcom/mygdx/game/AndroidLauncher; (3)
03-08 13:44:35.110: W/dalvikvm(1968): Link of class 'Lcom/mygdx/game/AndroidLauncher;' failed
03-08 13:44:35.110: D/AndroidRuntime(1968): Shutting down VM
03-08 13:44:35.120: W/dalvikvm(1968): threadid=1: thread exiting with uncaught exception (group=0xb1ae4ba8)
03-08 13:44:35.140: E/AndroidRuntime(1968): FATAL EXCEPTION: main
03-08 13:44:35.140: E/AndroidRuntime(1968): Process: com.mygdx.game, PID: 1968
03-08 13:44:35.140: E/AndroidRuntime(1968): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.mygdx.game/com.mygdx.game.AndroidLauncher}: java.lang.ClassNotFoundException: Didn't find class "com.mygdx.game.AndroidLauncher" on path: DexPathList[[zip file "/data/app/com.mygdx.game-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.mygdx.game-1, /system/lib]]
03-08 13:44:35.140: E/AndroidRuntime(1968):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2110)
03-08 13:44:35.140: E/AndroidRuntime(1968):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2233)
03-08 13:44:35.140: E/AndroidRuntime(1968):     at android.app.ActivityThread.access$800(ActivityThread.java:135)
03-08 13:44:35.140: E/AndroidRuntime(1968):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)
03-08 13:44:35.140: E/AndroidRuntime(1968):     at android.os.Handler.dispatchMessage(Handler.java:102)
03-08 13:44:35.140: E/AndroidRuntime(1968):     at android.os.Looper.loop(Looper.java:136)
03-08 13:44:35.140: E/AndroidRuntime(1968):     at android.app.ActivityThread.main(ActivityThread.java:5001)
03-08 13:44:35.140: E/AndroidRuntime(1968):     at java.lang.reflect.Method.invokeNative(Native Method)
03-08 13:44:35.140: E/AndroidRuntime(1968):     at java.lang.reflect.Method.invoke(Method.java:515)
03-08 13:44:35.140: E/AndroidRuntime(1968):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
03-08 13:44:35.140: E/AndroidRuntime(1968):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
03-08 13:44:35.140: E/AndroidRuntime(1968):     at dalvik.system.NativeStart.main(Native Method)
03-08 13:44:35.140: E/AndroidRuntime(1968): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.mygdx.game.AndroidLauncher" on path: DexPathList[[zip file "/data/app/com.mygdx.game-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.mygdx.game-1, /system/lib]]
03-08 13:44:35.140: E/AndroidRuntime(1968):     at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
03-08 13:44:35.140: E/AndroidRuntime(1968):     at java.lang.ClassLoader.loadClass(ClassLoader.java:497)
03-08 13:44:35.140: E/AndroidRuntime(1968):     at java.lang.ClassLoader.loadClass(ClassLoader.java:457)
03-08 13:44:35.140: E/AndroidRuntime(1968):     at android.app.Instrumentation.newActivity(Instrumentation.java:1061)
03-08 13:44:35.140: E/AndroidRuntime(1968):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2101)
03-08 13:44:35.140: E/AndroidRuntime(1968):     ... 11 more
03-08 13:49:35.320: I/Process(1968): Sending signal. PID: 1968 SIG: 9
</code></pre>

<p><a href="https://i.stack.imgur.com/4zbpf.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/4zbpf.jpg" alt="My project Build path"></a></p>

<p>I have tried a lot of answers from stackoverflow, but none seems to work in my case. Please help.</p>