title: Android SlickAE (libgdx) No class def found error
body: <p>This is the directory structure of my main project, which I'm calling from my Android project.</p>
  
  <pre><code>   src
      └── legless
          ├── entities
          │   ├── Bullet.java
          │   ├── Creep.java
          │   └── Hero.java
          ├── Game.java
          └── states
              ├── GameState.java
              └── MessageState.java
  </code></pre>
  
  <p>In Game.java, I instantiate a GameState object. This is the line where I get the error.</p>
  
  <pre><code>04-01 21:12:13.680: E/AndroidRuntime(12949): FATAL EXCEPTION: GLThread 10
  04-01 21:12:13.680: E/AndroidRuntime(12949): java.lang.NoClassDefFoundError: legless.states.GameState
  04-01 21:12:13.680: E/AndroidRuntime(12949):    at legless.Game.initStatesList(Game.java:22)
  04-01 21:12:13.680: E/AndroidRuntime(12949):    at org.newdawn.slick.state.StateBasedGame.init(StateBasedGame.java:164)
  04-01 21:12:13.680: E/AndroidRuntime(12949):    at org.newdawn.slick.GDXGameContainer.create(GDXGameContainer.java:135)
  04-01 21:12:13.680: E/AndroidRuntime(12949):    at com.badlogic.gdx.backends.android.AndroidGraphics.onSurfaceChanged(AndroidGraphics.java:265)
  04-01 21:12:13.680: E/AndroidRuntime(12949):    at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1356)
  04-01 21:12:13.680: E/AndroidRuntime(12949):    at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1118)
  </code></pre>
  
  <p>If required, AndroidManifest.xml looks like this,</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="yasith.legless"
      android:versionCode="1"
      android:versionName="1.0" &gt;
  
      &lt;uses-sdk android:minSdkVersion="10" /&gt;
  
      &lt;application
          android:icon="@drawable/ic_launcher"
          android:label="@string/app_name" &gt;
          &lt;activity
              android:name=".LeglessRunnerAndroid"
              android:label="@string/app_name" &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>I tried removing the "." in "&lt;activity android:name=". It didn't change anything.</p>
  
  <p>Any help would be greatly appreciated.</p>