title: ActionBarSherlock + Maps + Loaders = java.lang.NoClassDefFoundError
body: <p><strong>Edit:</strong> For a detailed how-to, check out <a href="https://stackoverflow.com/a/10041252/180538">my answer</a>.</p>
  
  <p>I'm struggling with it for two days now, hope someone can help.</p>
  
  <p>I'm trying to use the newest ActionBarSherlock (4.0) with a MapView. I knew it's problematic with fragments, but I don't need them in this activity. But I need Loaders and it appears, that to use Loaders I have to extend the FragmentActivity too. No problem, I thought, we have the <a href="https://github.com/petedoyle/android-support-v4-googlemaps" rel="nofollow noreferrer">android-support-v4-googlemaps</a> from Pete Doyle. As suggested on many SO threads and Google Groups I build the ABS with android-support-v4-googlemaps JAR (android-support-v13-r7-googlemaps.jar actually) instead of android-support-v4.jar. Then I used it as a library for my project.</p>
  
  <p><strong>Now, I would like to have my activity this way:</strong></p>
  
  <p><code>public class BananoutMapActivity extends SherlockFragmentActivity implements LoaderCallbacks&lt;ArrayList&lt;EventItem&gt;&gt;{</code></p>
  
  <p><strong>The problem:</strong></p>
  
  <p>It compiles, but throws a runtime error: <code>E/AndroidRuntime(29159): java.lang.NoClassDefFoundError: ndl.klimczak.bananout.BananoutMapActivity</code></p>
  
  <p><strong>Things I've triple checked:</strong></p>
  
  <ul>
  <li>both ActionBarSherlock library project and my project are targeted at Google APIs 4.0.3</li>
  <li>I have <code>&lt;uses-library android:name="com.google.android.maps" /&gt;</code> and I have it in the application tag.</li>
  <li>I also have the same android-support-v13-r7-googlemaps.jar in the build path of my project</li>
  <li>I have <code>.BananoutMapActivity</code> declared in my manifest</li>
  </ul>
  
  <p><strong>What is interesting:</strong></p>
  
  <ul>
  <li><p>When I run it on an ICS emulator it works (the error appears on 2.* emulators and my 2.3.7 device), on Honeycomb it would work too probably, it's the question of using the ACL I guess</p></li>
  <li><p>When I remove the <code>implements LoaderCallbacks&lt;ArrayList&lt;EventItem&gt;&gt;</code> part it works too, but this way I'm not able to use LoaderManager</p></li>
  </ul>
  
  <p><strong>Why on earth the NoClassDefFoundError error and how to get the Loaders working in my MapCapableSherlockEnabledFragmentActivity?</strong></p>