title: Android Phonegap getting Unfortunately <app> has stopped
body: <p>If I change the project build target in a Phonegap app I get "Unfortunately  has stopped unexpectedly"</p>
  
  <p>I have made app with a target build path of 4.0.3 and set the min-sdk to 7.  The app will run fine at first but Google does not allow it to be downloaded by a tablet.</p>
  
  <p>If I do anything to change the Build Target and/or change the build target to the original version after I get the same message.  The app will not load on any device at that point.</p>
  
  <p>I am not sure what is causing this but even if I have an app has beeb installed fine and run fine, if I modify a file it gives me an error.</p>
  
  <p>One more thing, I noticed that if I push the file to bitbucket it starts doing this also but not all the time.  Here is a error message that I received from the  play market.</p>
  
  <p>Any help is appreciated.</p>
  
  <p>java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{your.abSmallBusinessMarketing.hapmen/your.abSmallBusinessMarketing.hapmen.FlowChartbyHapmanActivity}: java.lang.ClassNotFoundException: your.abSmallBusinessMarketing.hapmen.FlowChartbyHapmanActivity in loader dalvik.system.PathClassLoader[/data/app/your.abSmallBusinessMarketing.hapmen-1.apk] at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1618) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1716) at android.app.ActivityThread.access$1500(ActivityThread.java:124) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:968) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:130) at android.app.ActivityThread.main(ActivityThread.java:3806) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:507) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597) at dalvik.system.NativeStart.main(Native Method) Caused by: java.lang.ClassNotFoundException: your.abSmallBusinessMarketing.hapmen.FlowChartbyHapmanActivity in loader dalvik.system.PathClassLoader[/data/app/your.abSmallBusinessMarketing.hapmen-1.apk] at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:240) at java.lang.ClassLoader.loadClass(ClassLoader.java:551) at java.lang.ClassLoader.loadClass(ClassLoader.java:511) at android.app.Instrumentation.newActivity(Instrumentation.java:1021) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1610)</p>
  
  <p>Here is the maifest</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="your.abSmallBusinessMarketing.hapmen"
      android:versionCode="7"
      android:versionName="1.3" &gt;
  
      &lt;supports-screens
          android:anyDensity="true"
          android:largeScreens="true"
          android:normalScreens="true"
          android:resizeable="true"
          android:smallScreens="true"
           android:xlargeScreens="true" /&gt;
  
      &lt;uses-permission android:name="android.permission.READ_PHONE_STATE" /&gt;
      &lt;uses-permission android:name="android.permission.INTERNET" /&gt;
  
      &lt;uses-sdk android:minSdkVersion="7" /&gt;
  
      &lt;application
          android:icon="@drawable/ic_launcher"
          android:label="@string/app_name" &gt;
          &lt;activity
              android:name=".FlowChartByHapmanActivity"
              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="org.apache.cordova.DroidGap"
              android:configChanges="orientation|screenSize|keyboardHidden"
              android:label="@string/app_name"
              android:screenOrientation="portrait" &gt;
              &lt;intent-filter&gt;
              &lt;/intent-filter&gt;
          &lt;/activity&gt;
      &lt;/application&gt;
  
  &lt;/manifest&gt;
  </code></pre>