title: NoClassDefFoundError: com.urbanairship.AirshipConfigOptions (Android Push Development)
body: <p>I'm trying to run a <a href="https://docs.urbanairship.com/display/DOCS/Getting+Started:+Android:+C2DM+Push" rel="nofollow noreferrer">sample project for doing Android Push notifications with Urban Airship</a>. My program can't seem to find this <code>AirshipConfigOptions</code> class. The project builds fine, only throws this error at runtime.</p>
  
  <p>Here is what my project structure looks like:</p>
  
  <p><img src="https://i.stack.imgur.com/ZJhMO.png" alt="enter image description here"></p>
  
  <p>Here is the error I'm getting:</p>
  
  <blockquote>
    <p>05-09 18:50:10.926: I/dalvikvm(2007): Could not find method com.urbanairship.AirshipConfigOptions.loadDefaultOptions, referenced from method com.urbanairship.push.sample.MyApplication.onCreate
    05-09 18:50:10.946: I/dalvikvm(2007): threadid=3: reacting to signal 3
    05-09 18:50:11.016: W/dalvikvm(2007): VFY: unable to resolve static method 46: Lcom/urbanairship/AirshipConfigOptions;.loadDefaultOptions (Landroid/content/Context;)Lcom/urbanairship/AirshipConfigOptions;
    05-09 18:50:11.016: D/dalvikvm(2007): VFY: replacing opcode 0x71 at 0x0003
    05-09 18:50:11.115: D/dalvikvm(2007): DexOpt: unable to opt direct call 0x004a at 0x0f in Lcom/urbanairship/push/sample/MyApplication;.onCreate
    05-09 18:50:11.115: D/AndroidRuntime(2007): Shutting down VM
    05-09 18:50:11.115: W/dalvikvm(2007): threadid=1: thread exiting with uncaught exception (group=0x409c01f8)
    05-09 18:50:11.125: E/AndroidRuntime(2007): FATAL EXCEPTION: main
    05-09 18:50:11.125: E/AndroidRuntime(2007): <strong>java.lang.NoClassDefFoundError: com.urbanairship.AirshipConfigOptions</strong>
    05-09 18:50:11.125: E/AndroidRuntime(2007):     at com.urbanairship.push.sample.MyApplication.onCreate(MyApplication.java:46)
    05-09 18:50:11.125: E/AndroidRuntime(2007):     at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:969)
    05-09 18:50:11.125: E/AndroidRuntime(2007):     at android.app.ActivityThread.handleBindApplication(ActivityThread.java:3954)
    05-09 18:50:11.125: E/AndroidRuntime(2007):     at android.app.ActivityThread.access$1300(ActivityThread.java:123)
    05-09 18:50:11.125: E/AndroidRuntime(2007):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1185)
    05-09 18:50:11.125: E/AndroidRuntime(2007):     at android.os.Handler.dispatchMessage(Handler.java:99)
    05-09 18:50:11.125: E/AndroidRuntime(2007):     at android.os.Looper.loop(Looper.java:137)
    05-09 18:50:11.125: E/AndroidRuntime(2007):     at android.app.ActivityThread.main(ActivityThread.java:4424)
    05-09 18:50:11.125: E/AndroidRuntime(2007):     at java.lang.reflect.Method.invokeNative(Native Method)
    05-09 18:50:11.125: E/AndroidRuntime(2007):     at java.lang.reflect.Method.invoke(Method.java:511)
    05-09 18:50:11.125: E/AndroidRuntime(2007):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
    05-09 18:50:11.125: E/AndroidRuntime(2007):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
    05-09 18:50:11.125: E/AndroidRuntime(2007):     at dalvik.system.NativeStart.main(Native Method)
    05-09 18:50:11.215: E/dalvikvm(2007): Unable to open stack trace file '/data/anr/traces.txt': Is a directory
    05-09 18:50:11.486: I/dalvikvm(2007): threadid=3: reacting to signal 3
    05-09 18:50:11.526: I/dalvikvm(2007): Wrote stack traces to '/data/anr/traces.txt'
    05-09 18:50:11.795: I/dalvikvm(2007): threadid=3: reacting to signal 3
    05-09 18:50:11.815: I/dalvikvm(2007): Wrote stack traces to '/data/anr/traces.txt'</p>
  </blockquote>
  
  <p>Also, I am already aware that I need to put JARs in a "libs" folder, not a "lib" folder, as <a href="http://www.wiseappsllc.com/homepage/android-dev-tips" rel="nofollow noreferrer">documented here</a>.</p>
  
  <hr>
  
  <p>Update 1:</p>
  
  <p>I have the following activities in my <strong>AndroidManifest.xml</strong>:</p>
  
  <pre><code>        &lt;activity android:name="com.urbanairship.push.sample.MainActivity"
                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;activity android:name="com.urbanairship.push.sample.PushPreferencesActivity" /&gt;
      &lt;activity android:name="com.urbanairship.push.sample.LocationActivity" /&gt;
  </code></pre>
  
  <p>Here is a screenshot of my Java Build Path:
  <img src="https://i.stack.imgur.com/dmlhv.png" alt="enter image description here"></p>