title: java.lang.ClassNotFoundException: com.game.mrnom.MrNomGame loader dalvik.system.PathClassLoader [/data/app/com.game.mrnom-1.apk]
body: <p>In my title, MrNomGame is a java file in com.game.mrnom folder (of src folder).<br>
  When I run my app, Android Emulator error: <code>The application has stopped unexpectedly.</code>
  When I view logCat, there are many errors. and above error is one of the first lines of logCat and directly tell about my error. 
  Here is also  my manifest file:</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.game.mrnom"
      android:versionCode="1"
      android:versionName="1.0" &gt;
  
      &lt;uses-sdk android:minSdkVersion="8" /&gt;
  
      &lt;application
  
          android:debuggable="true" 
          android:icon="@drawable/icon"
          android:label="Mr.Nom" &gt;
  
  
          &lt;activity
              android:label="Mr.Nom Own"
              android:name="com.game.mrnom.MrNomGame"
              android:screenOrientation="portrait"
              android:configChanges="keyboard|keyboardHidden|orientation" &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;/application&gt;
  
      &lt;uses-permission android:name="android.permission.WAKE_LOCK"/&gt;
      &lt;uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/&gt;
      &lt;uses-sdk android:targetSdkVersion="8" android:minSdkVersion="8"/&gt;
  
  &lt;/manifest&gt;
  </code></pre>
  
  <p>I google and someone say that ADB bug when I refactor:rename a package (and I have tried this sometimes). but I still cannot fix it.</p>
  
  <p>Help me about this error,please.</p>
  
  <p>thanks :)</p>
  
  <p>Here my error logcat:</p>
  
  <blockquote>
    <p>02-11 21:12:46.858: D/AndroidRuntime(276): Shutting down VM 02-11 
    21:12:46.858: W/dalvikvm(276): threadid=1: thread exiting with
    uncaught exception (group=0x4001d800)</p>
    
    <p>02-11 21:12:46.958: E/AndroidRuntime(276): FATAL EXCEPTION: main</p>
    
    <p>02-11 21:12:46.958: E/AndroidRuntime(276): java.lang.RuntimeException:
    Unable to instantiate activity
    ComponentInfo{com.game.mrnom/com.game.mrnom.MrNomGame}:
    java.lang.ClassNotFoundException: com.game.mrnom.MrNomGame in loader
    dalvik.system.PathClassLoader[/data/app/com.game.mrnom-1.apk]</p>
    
    <p>02-11 21:12:46.958: E/AndroidRuntime(276):    at
    android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2585)</p>
    
    <p>02-11 21:12:46.958: E/AndroidRuntime(276):    at
    android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)</p>
    
    <p>02-11 21:12:46.958: E/AndroidRuntime(276):    at
    android.app.ActivityThread.access$2300(ActivityThread.java:125)</p>
    
    <p>02-11 21:12:46.958: E/AndroidRuntime(276):    at
    android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)</p>
    
    <p>02-11 21:12:46.958: E/AndroidRuntime(276):    at
    android.os.Handler.dispatchMessage(Handler.java:99) 02-11
    21:12:46.958: E/AndroidRuntime(276):  at
    android.os.Looper.loop(Looper.java:123)</p>
    
    <p>02-11 21:12:46.958: E/AndroidRuntime(276):    at
    android.app.ActivityThread.main(ActivityThread.java:4627)</p>
    
    <p>02-11 21:12:46.958: E/AndroidRuntime(276):    at
    java.lang.reflect.Method.invokeNative(Native Method)</p>
    
    <p>02-11 21:12:46.958: E/AndroidRuntime(276):    at
    java.lang.reflect.Method.invoke(Method.java:521)</p>
    
    <p>02-11 21:12:46.958: E/AndroidRuntime(276):    at
    com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)</p>
    
    <p>02-11 21:12:46.958: E/AndroidRuntime(276):    at
    com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)</p>
    
    <p>02-11 21:12:46.958: E/AndroidRuntime(276):    at
    dalvik.system.NativeStart.main(Native Method)</p>
    
    <p>02-11 21:12:46.958: E/AndroidRuntime(276): Caused by:
    java.lang.ClassNotFoundException: com.game.mrnom.MrNomGame in loader
    dalvik.system.PathClassLoader[/data/app/com.game.mrnom-1.apk]</p>
    
    <p>02-11 21:12:46.958: E/AndroidRuntime(276):    at
    dalvik.system.PathClassLoader.findClass(PathClassLoader.java:243)</p>
    
    <p>02-11 21:12:46.958: E/AndroidRuntime(276):    at
    java.lang.ClassLoader.loadClass(ClassLoader.java:573)</p>
    
    <p>02-11 21:12:46.958: E/AndroidRuntime(276):    at
    java.lang.ClassLoader.loadClass(ClassLoader.java:532)</p>
    
    <p>02-11 21:12:46.958: E/AndroidRuntime(276):    at
    android.app.Instrumentation.newActivity(Instrumentation.java:1021)</p>
    
    <p>02-11 21:12:46.958: E/AndroidRuntime(276):    at
    android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2577)</p>
    
    <p>02-11 21:12:46.958: E/AndroidRuntime(276):    ... 11 more</p>
    
    <p>02-11 21:12:54.277: I/Process(276): Sending signal. PID: 276 SIG: 9</p>
    
    <p>02-11 21:12:58.157: D/AndroidRuntime(284): Shutting down VM</p>
    
    <p>02-11 21:12:58.157: W/dalvikvm(284): threadid=1: thread exiting with
    uncaught exception (group=0x4001d800)</p>
    
    <p>02-11 21:12:58.207: E/AndroidRuntime(284): FATAL EXCEPTION: main</p>
    
    <p>02-11 21:12:58.207: E/AndroidRuntime(284): java.lang.RuntimeException:
    Unable to instantiate activity
    ComponentInfo{com.game.mrnom/com.game.mrnom.MrNomGame}:
    java.lang.ClassNotFoundException: com.game.mrnom.MrNomGame in loader
    dalvik.system.PathClassLoader[/data/app/com.game.mrnom-1.apk]</p>
    
    <p>02-11 21:12:58.207: E/AndroidRuntime(284):    at
    android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2585)</p>
    
    <p>02-11 21:12:58.207: E/AndroidRuntime(284):    at
    android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)</p>
    
    <p>02-11 21:12:58.207: E/AndroidRuntime(284):    at
    android.app.ActivityThread.access$2300(ActivityThread.java:125)</p>
    
    <p>02-11 21:12:58.207: E/AndroidRuntime(284):    at
    android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)</p>
    
    <p>02-11 21:12:58.207: E/AndroidRuntime(284):    at
    android.os.Handler.dispatchMessage(Handler.java:99)</p>
    
    <p>02-11 21:12:58.207: E/AndroidRuntime(284):    at
    android.os.Looper.loop(Looper.java:123)</p>
    
    <p>02-11 21:12:58.207: E/AndroidRuntime(284):    at
    android.app.ActivityThread.main(ActivityThread.java:4627) 02-11
    21:12:58.207: E/AndroidRuntime(284):  at
    java.lang.reflect.Method.invokeNative(Native Method)</p>
    
    <p>02-11 21:12:58.207: E/AndroidRuntime(284):    at
    java.lang.reflect.Method.invoke(Method.java:521)</p>
    
    <p>02-11 21:12:58.207: E/AndroidRuntime(284):    at
    com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)</p>
    
    <p>02-11 21:12:58.207: E/AndroidRuntime(284):    at
    com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)</p>
    
    <p>02-11 21:12:58.207: E/AndroidRuntime(284):    at
    dalvik.system.NativeStart.main(Native Method)</p>
    
    <p>02-11 21:12:58.207: E/AndroidRuntime(284): Caused by:
    java.lang.ClassNotFoundException: com.game.mrnom.MrNomGame in loader
    dalvik.system.PathClassLoader[/data/app/com.game.mrnom-1.apk]</p>
    
    <p>02-11 21:12:58.207: E/AndroidRuntime(284):    at
    dalvik.system.PathClassLoader.findClass(PathClassLoader.java:243)</p>
    
    <p>02-11 21:12:58.207: E/AndroidRuntime(284):    at
    java.lang.ClassLoader.loadClass(ClassLoader.java:573)</p>
    
    <p>02-11 21:12:58.207: E/AndroidRuntime(284):    at
    java.lang.ClassLoader.loadClass(ClassLoader.java:532)</p>
    
    <p>02-11 21:12:58.207: E/AndroidRuntime(284):    at
    android.app.Instrumentation.newActivity(Instrumentation.java:1021)</p>
    
    <p>02-11 21:12:58.207: E/AndroidRuntime(284):    at
    android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2577)</p>
    
    <p>02-11 21:12:58.207: E/AndroidRuntime(284):    ... 11 more 02-11
    21:17:58.297: I/Process(284): Sending signal. PID: 284 SIG: 9</p>
  </blockquote>