title: java.lang.NoClassDefFoundError with Android Maven Plugin
body: <p>I got my android maven plugin running today and now I want to debug my apk on a real Android Device.</p>
  
  <p>When I execute  </p>
  
  <pre><code>cd android-proj 
  mvn clean install android:redeploy 
  </code></pre>
  
  <p>and start the app on my device, I stumble across this error message in the LogCat: </p>
  
  <pre><code>10-27 21:16:08.857: E/AndroidRuntime(14556): java.lang.NoClassDefFoundError: de.dornathal.planyourmeals.android.database.AndroidDBHelper$SQLiteDatabaseAdapter
  </code></pre>
  
  <p>However I searched for solutions and came across that some libraries were not included correctly what could cause this problem. The class AndroidDBHelper is not included by an dependency in the maven pom, because it is a nested class in 'android-proj/android-apk'.
  Where android-proj is the folder where Maven has 2 modules the apk and core functions.</p>
  
  <p>As the AndroidManifest.xml has no direct link to AndroidDBHelper and AndroidDBHelper is the only class that knows about the SQLiteDatabaseAdapter the apk build by Maven must work at least a bit further than only calling the MainActivity.</p>
  
  <p>MFG Dornathal</p>