title: java.lang.ClassNotFoundException: Didn't find class ".MyApplication" on path: DexPathList[[zip file "/data/app/com.sampledemo.box8demo-1/base.apk"]
body: <p>I have been trying to solve below issue from 3 days.
  Problem : Created new module as a library in android project and created aar file using <code>assembleDebug</code>.
  That aar file i have added in another project as a new module ( dependecies also added ) but after installing the app into the device i am getting below error :</p>
  
  <pre><code>6055-26055/com.sampledemo.box8demo E/AndroidRuntime: FATAL EXCEPTION: main
          Process: com.sampledemo.box8demo, PID: 26055
          java.lang.RuntimeException: Unable to instantiate application com.NerdNow.NerdNowApplication: java.lang.ClassNotFoundException: Didn't find class "com.NerdNow.NerdNowApplication" on path: DexPathList[[zip file "/data/app/com.sampledemo.box8demo-1/base.apk"],nativeLibraryDirectories=[/data/app/com.sampledemo.box8demo-1/lib/arm64, /vendor/lib64, /system/lib64]]
          at android.app.LoadedApk.makeApplication(LoadedApk.java:580)
          at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4699)
          at android.app.ActivityThread.access$1600(ActivityThread.java:153)
          at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1412)
          at android.os.Handler.dispatchMessage(Handler.java:102)
          at android.os.Looper.loop(Looper.java:148)
          at android.app.ActivityThread.main(ActivityThread.java:5441)
          at java.lang.reflect.Method.invoke(Native Method)
          at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:738)
          at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:628)
          Caused by: java.lang.ClassNotFoundException: Didn't find class "com.NerdNow.NerdNowApplication" on path: DexPathList[[zip file "/data/app/com.sampledemo.box8demo-1/base.apk"],nativeLibraryDirectories=[/data/app/com.sampledemo.box8demo-1/lib/arm64, /vendor/lib64, /system/lib64]]
          at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
          at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
          at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
          at android.app.Instrumentation.newApplication(Instrumentation.java:982)
          at android.app.LoadedApk.makeApplication(LoadedApk.java:575)
          at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4699)
          at android.app.ActivityThread.access$1600(ActivityThread.java:153)
          at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1412)
          at android.os.Handler.dispatchMessage(Handler.java:102)
          at android.os.Looper.loop(Looper.java:148)
          at android.app.ActivityThread.main(ActivityThread.java:5441)
          at java.lang.reflect.Method.invoke(Native Method)
          at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:738)
          at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:628)
          Suppressed: java.lang.NoClassDefFoundError: com.NerdNow.NerdNowApplication
          at dalvik.system.DexFile.defineClassNative(Native Method)
          at dalvik.system.DexFile.defineClass(DexFile.java:226)
          at dalvik.system.DexFile.loadClassBinaryName(DexFile.java:219)
          at dalvik.system.DexPathList.findClass(DexPathList.java:338)
          at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:54)
          ... 13 more
          Suppressed: java.lang.ClassNotFoundException: com.NerdNow.NerdNowApplication
          at java.lang.Class.classForName(Native Method)
          at java.lang.BootClassLoader.findClass(ClassLoader.java:781)
          at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)
          at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
          ... 12 more
          Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack trace available
  </code></pre>
  
  <p>I have enabled <code>multidex</code> in <code>gradle</code> file as well as extended <code>MultiDexApplication</code> in <code>Application</code> class
  Also added <code>multidex dependecy</code> in <code>gradle</code> file</p>
  
  <p>please help me to resolve this issue. </p>