title: Android java.lang.NoClassDefFoundError when launching new activity
body: <p>I am getting a java.lang.NoClassDefFoundError when I try to launch my new activity. Below is my AndroidManifest.xml:</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.practice.googlemaps"
      android:versionCode="1"
      android:versionName="1.0" &gt;
  
      &lt;uses-sdk android:minSdkVersion="15" /&gt;
    &lt;uses-permission android:name="android.permission.INTERNET" /&gt;
  
      &lt;application
          android:icon="@drawable/ic_launcher"
          android:label="@string/app_name" &gt;
  
              &lt;activity
                  android:name=".LoginActivity"
                  android:label="Login to your Account"&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=".RegisterActivity"
              android:label="Register New Account"&gt;
          &lt;/activity&gt;
  
          &lt;activity
              android:name=".GoogleMapsActivity"
              android:label="Google Maps"&gt;
          &lt;/activity&gt;
  
          &lt;uses-library android:name="com.google.android.maps"/&gt;
  
      &lt;/application&gt;
  
  &lt;/manifest&gt;
  </code></pre>
  
  <p>Code for GoogleMapsActivity.java</p>
  
  <pre><code>package com.practice.googlemaps;
  
  import android.os.Bundle;
  
  import com.google.android.maps.MapActivity;
  import com.google.android.maps.MapView;
  
  public class GoogleMapsActivity extends MapActivity {
  
    public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.main);
      MapView mapView = (MapView)findViewById(R.id.mapView);
      mapView.setBuiltInZoomControls(true);
    }
  
      @Override
      protected boolean isRouteDisplayed() {
        // TODO Auto-generated method stub
        return false;
      }
  }
  </code></pre>
  
  <p>And the following is the line I'm using to launch the new activity:</p>
  
  <pre><code>Intent i = new Intent(getApplicationContext(), GoogleMapsActivity.class);
  startActivity(i);
  </code></pre>
  
  <p>I have checked my class GoogleMapsActivity.java, the file is present and the spelling/wording all match.</p>
  
  <p>I suspect the error may be caused by my AndroidManifest.xml, but I cannot find the problem.</p>
  
  <p>Could someone please point me in the right direction?</p>