title: Android Intent causes NoClassDefFoundError
body: <p>I have encountered the NoClassDefFoundError when trying to create a new Intent to start a Service. I have checked several suggested solutions such as including libraries in the /libs path, I believe that I have these set up correctly. I have included my manifest and source below. Any help would be really appreciated.</p>
  
  <p>Here is a screen capture of my file structure inside Eclipse
  <img src="https://i.stack.imgur.com/J7lLT.jpg" alt="enter image description here"></p>
  
  <p>Here is my Manifest</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="com.ajinex.easysave"
      android:versionCode="1"
      android:versionName="1.0" &gt;
      &lt;uses-sdk
          android:minSdkVersion="8"
          android:targetSdkVersion="11" /&gt;
      &lt;uses-permission android:name="android.permission.INTERNET"&gt;&lt;/uses-permission&gt;
      &lt;uses-permission android:name="android.permission.CALL_PHONE"&gt;&lt;/uses-permission&gt;
      &lt;uses-permission android:name="android.permission.READ_PHONE_STATE"&gt;&lt;/uses-permission&gt;
      &lt;uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"&gt;&lt;/uses-permission&gt;
      &lt;uses-permission android:name="android.permission.ACCESS_WIFI_STATE"&gt;&lt;/uses-permission&gt;
      &lt;uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"&gt;&lt;/uses-permission&gt;
      &lt;uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"&gt;&lt;/uses-permission&gt;
  &lt;application
      android:icon="@drawable/ic_launcher"
      android:label="@string/app_name"
      android:theme="@android:style/Theme.NoTitleBar.Fullscreen" &gt;
      &lt;activity
          android:name=".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=".CouponsActivity"
          android:screenOrientation="portrait"
          android:launchMode="singleInstance"
          android:label="@string/title_activity_coupons" &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;!--  service  --&gt;
          &lt;service android:enabled="true" android:name=".LocationCheckService" &gt;
      &lt;/service&gt;
  &lt;/application&gt;
  </code></pre>
  
  <p></p>
  
  <p>Here is my calling code from the MainActivity:</p>
  
  <pre><code>Intent LocationCheck = new Intent(this, LocationCheckService.class);
      this.startService(LocationCheck);    
  </code></pre>
  
  <p>Here is my LocationCheckService.class    </p>
  
  <pre><code>public class LocationCheckService extends Service {
      public class LocalBinder extends Binder {
          LocationCheckService getService() {
              return LocationCheckService.this;
          }
      }
  
  
      public final IBinder mBinder = new LocalBinder();
  
      @Override
      public IBinder onBind(Intent intent) {
          return mBinder;
      }
  
      @Override
      public int onStartCommand(Intent intent, int flags, int startId) {
          if(checkNetworkRechability()){
              Toast.makeText(this, "EasySave Service Started", Toast.LENGTH_LONG).show();
              getSysLocation();
          }
          return START_STICKY;
      }
      @Override
      public void onCreate() {
  
      }
  
      @Override
      public void onDestroy() {
  
      }
  }    
  </code></pre>
  
  <p>Here is some LogCat output relating to the issue:  </p>
  
  <pre><code>07-16 00:09:36.712: I/AndroidRuntime(312): NOTE: attach of thread 'Binder Thread #3' failed
  07-16 00:09:37.702: W/ActivityManager(59): Unable to start service Intent { act=com.ajinex.easysave.location.LocationCheckService }: not found
  07-16 00:09:38.162: I/ActivityManager(59): Displayed activity   com.ajinex.easysave/.MainActivity: 1568 ms (total 1568 ms)
  </code></pre>