java.lang.RuntimeException: Unable to instantiate application com.todos.MyApplication: java.lang.ClassNotFoundException
<pre><code>W/dalvikvm(21732): threadid=1: thread exiting with uncaught exception (group=0x41d0cda0)
E/Drive.UninstallOperation( 1829): Package still installed com.todos
E/AndroidRuntime(21732): FATAL EXCEPTION: main
E/AndroidRuntime(21732): Process: com.todos, PID: 21732
E/AndroidRuntime(21732): java.lang.RuntimeException: Unable to instantiate application com.todos.MyApplication: java.lang.ClassNotFoundException: Didn't find class "com.todos.MyApplication" on path: DexPathList[[zip file "/data/app/com.todos-3.apk"],nativeLibraryDirectories=[/data/app-lib/com.todos-3, /vendor/lib, /system/lib]]
E/AndroidRuntime(21732): at android.app.LoadedApk.makeApplication(LoadedApk.java:507)
E/AndroidRuntime(21732): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4841)
E/AndroidRuntime(21732): at android.app.ActivityThread.access$1600(ActivityThread.java:174)
E/AndroidRuntime(21732): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1381)
E/AndroidRuntime(21732): at android.os.Handler.dispatchMessage(Handler.java:102)
E/AndroidRuntime(21732): at android.os.Looper.loop(Looper.java:146)
E/AndroidRuntime(21732): at android.app.ActivityThread.main(ActivityThread.java:5731)
E/AndroidRuntime(21732): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime(21732): at java.lang.reflect.Method.invoke(Method.java:515)
E/AndroidRuntime(21732): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1291)
E/AndroidRuntime(21732): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1107)
E/AndroidRuntime(21732): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime(21732): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.todos.MyApplication" on path: DexPathList[[zip file "/data/app/com.todos-3.apk"],nativeLibraryDirectories=[/data/app-lib/com.todos-3, /vendor/lib, /system/lib]]
E/AndroidRuntime(21732): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:67)
E/AndroidRuntime(21732): at java.lang.ClassLoader.loadClass(ClassLoader.java:497)
E/AndroidRuntime(21732): at java.lang.ClassLoader.loadClass(ClassLoader.java:457)
E/AndroidRuntime(21732): at android.app.Instrumentation.newApplication(Instrumentation.java:981)
E/AndroidRuntime(21732): at android.app.LoadedApk.makeApplication(LoadedApk.java:502)
E/AndroidRuntime(21732): ... 11 more
W/ActivityManager(  757):   Force finishing activity com.todos/.MainActivity
W/DropBoxManagerService(  757): Dropping: data_app_crash (1781 &gt; 0 bytes)
</code></pre>

<p>My <code>AndroidManifest</code> looks like the following...</p>

<p></p>

<pre><code>  &lt;uses-permission android:name="android.permission.INTERNET" /&gt;
  &lt;uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/&gt;

  &lt;uses-sdk
      android:minSdkVersion="16"
      android:targetSdkVersion="22" /&gt;

  &lt;application
    android:allowBackup="true"
    android:label="@string/app_name"
    android:icon="@mipmap/ic_launcher"
    android:theme="@style/AppTheme"
    android:name="com.todos.MyApplication"&gt;


    &lt;meta-data android:name="com.facebook.sdk.ApplicationId" android:value="@string/facebook_app_id"/&gt;

    &lt;activity
      android:name=".MainActivity"
      android:label="@string/app_name"
      android:configChanges="keyboard|keyboardHidden|orientation|screenSize"&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="com.facebook.react.devsupport.DevSettingsActivity" /&gt;
  &lt;/application&gt;
</code></pre>

<p></p>

<p>This started breaking when I added <code>com.todos.MyApplication</code> source file...</p>

<p><a href="https://i.stack.imgur.com/MNys0.png" rel="noreferrer"><img src="https://i.stack.imgur.com/MNys0.png" alt="enter image description here"></a></p>

<p>When I open the project in Android Studio and navigate to <code>MyApplication.java</code> I see the following...</p>

<p><a href="https://i.stack.imgur.com/jEhho.png" rel="noreferrer"><img src="https://i.stack.imgur.com/jEhho.png" alt="enter image description here"></a></p>