title: I'm getting error when running my app using android 4.4 and 8.1 (api level 19 & 27) on tablets/mobile phones
body: <p>This ClassNotFound exception came when I run it on android 4.4 devices, I wonder how did it happen, because I have already registered all of my activities under my manifest file, but still this error is occurring again and it makes me confused.
  Please can anyone suggest me what is wrong with my code:</p>
  
  <p>Here is error :</p>
  
  <pre><code>Caused by: java.lang.ClassNotFoundException: Didn't find class "com.Forewarn.ForewarnApp.activities.Splash Activity" on path: DexPathList[[zip file "/data/app/com.Forewarn.ForewarnApp-2.apk"],nativeLibraryDirectories=[/data/app-lib/com.Forewarn.ForewarnApp-2, /system/lib]]
  </code></pre>
  
  <p>Here is manifest :</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:tools="http://schemas.android.com/tools"
      package="com.Forewarn.ForewarnApp"&gt;
  
      &lt;!-- To auto-complete the email text field in the login form with the user's emails --&gt;
      &lt;uses-permission android:name="android.permission.GET_ACCOUNTS" /&gt;
      &lt;uses-permission android:name="android.permission.READ_PROFILE" /&gt;
      &lt;uses-permission android:name="android.permission.READ_CONTACTS" /&gt;
      &lt;uses-permission android:name="android.permission.WRITE_CONTACTS" /&gt;
      &lt;uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /&gt;
      &lt;uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /&gt;
      &lt;uses-permission android:name="android.permission.INTERNET" /&gt;
      &lt;uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /&gt;
      &lt;uses-permission android:name="android.permission.GET_ACCOUNTS" /&gt;
      &lt;uses-permission android:name="android.permission.WAKE_LOCK" /&gt;
      &lt;uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" /&gt;
      &lt;uses-permission android:name="android.permission.VIBRATE" /&gt;
      &lt;uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" /&gt;
      &lt;uses-permission android:name="android.permission.SYSTEM_OVERLAY_WINDOW" /&gt;
      &lt;uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /&gt;
      &lt;uses-permission android:name="android.permission.CALL_PHONE" /&gt;
      &lt;uses-permission android:name="android.permission.READ_PHONE_STATE" /&gt;
      &lt;uses-permission android:name="android.permission.PROCESS_OUTGOING_CALLS" /&gt;
      &lt;uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES" /&gt;
      &lt;uses-permission android:name="android.permission.SEND_SMS" /&gt;
      &lt;uses-permission android:name="android.permission.READ_CALL_LOG" /&gt;
      &lt;uses-permission android:name="android.permission.WRITE_CALL_LOG" /&gt;
      &lt;uses-permission android:name="com.android.launcher.permission.INSTALL_SHORTCUT" /&gt;
      &lt;uses-permission android:name="android.permission.USE_FINGERPRINT" /&gt;
  
      &lt;uses-permission
          android:name="android.permission.MODIFY_PHONE_STATE"
          tools:ignore="ProtectedPermissions" /&gt;
  
      &lt;uses-feature
          android:name="android.hardware.camera"
          android:required="false" /&gt;
  
      &lt;configuration&gt;
          &lt;release&gt;
              true
          &lt;/release&gt;
      &lt;/configuration&gt;
  
      &lt;permission
          android:name="com.Forewarn.ForewarnApp.permission.C2D_MESSAGE"
          android:protectionLevel="signature" /&gt;
  
      &lt;uses-permission android:name="com.Forewarn.ForewarnApp.permission.C2D_MESSAGE" /&gt;
      &lt;uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" /&gt;
  
      &lt;application
          android:name=".activities.SoteriaApplication"
          android:allowBackup="false"
          android:icon="@drawable/ic_launcherr"
          android:label="@string/app_name"
          android:supportsRtl="true"
          android:theme="@style/AppTheme"&gt;
          &lt;activity
              android:name=".activities.SplashActivity"
              android:label="@string/app_name"
              android:configChanges="orientation|screenSize"
              android:screenOrientation="portrait"
              android:theme="@style/AppTheme.NoActionBar"&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=".MainActivity"
              android:configChanges="orientation|keyboardHidden|screenSize" /&gt;
          &lt;activity
              android:name=".activities.SignInActivity"
              android:configChanges="orientation|keyboardHidden|screenSize" /&gt;
          &lt;activity android:name=".activities.SignUpActivity" /&gt;
          &lt;activity android:name=".activities.ForgotPasswordActivity" /&gt;
          &lt;activity android:name=".activities.SerachResultsActivity" /&gt;
          &lt;activity android:name=".activities.DetailsPageActivity" /&gt;
          &lt;activity android:name=".activities.PropertyDetailsActivity" /&gt;
          &lt;activity android:name=".activities.BankurptsDetailsActivity" /&gt;
          &lt;activity android:name=".activities.SampleActivity" /&gt;
          &lt;activity android:name=".activities.ActivityCallLog" /&gt;
          &lt;activity android:name=".activities.SettingsActivity" /&gt;
          &lt;activity android:name=".activities.VehicleDetailsActivity" /&gt;
          &lt;activity android:name=".activities.ResultsActivity" /&gt;
          &lt;activity android:name=".activities.OthersActivity" /&gt;
          &lt;activity android:name=".activities.NoRecordsActivity" /&gt;
          &lt;activity android:name=".activities.MoreRecordsActivity" /&gt;
          &lt;activity
              android:name=".activities.CriminalDetailsActivity"
              android:configChanges="orientation|keyboardHidden|screenSize" /&gt;
          &lt;activity android:name=".activities.CriminalSampleActivity" /&gt;
          &lt;activity
              android:name=".activities.OtpActivity"
              android:configChanges="orientation|keyboardHidden|screenSize" /&gt;
          &lt;activity android:name=".activities.AddressesDetailsActivity" /&gt;
          &lt;activity
              android:name=".activities.PhonesHistoryDetailsActivity"
              android:configChanges="orientation|keyboardHidden|screenSize" /&gt;
          &lt;activity android:name=".activities.ContactsReaderActivity" /&gt;
          &lt;activity
              android:name=".activities.FingerprintTermsAndConditionsActivity"
              android:configChanges="orientation|keyboardHidden|screenSize" /&gt;
          &lt;activity android:name=".activities.ChangePasswordActivity" /&gt;
          &lt;activity
              android:name=".activities.TermsandConditionsActivity"
              android:configChanges="orientation|keyboardHidden|screenSize" /&gt;
          &lt;activity android:name=".activities.PdfPasswordActivity"&gt;&lt;/activity&gt;
      &lt;/application&gt;
  
  &lt;/manifest&gt;
  </code></pre>
  
  <p>and btw i put my minsdkversion = 19
  maxsdkversion = 27 
  and error getting app crashed on android 8.1.0 (api level 27) devices also.</p>
  
  <p>here is my application class code :</p>
  
  <pre><code>public class SoteriaApplication extends Application {
      @Override
      public void onCreate() {
          super.onCreate();
          AccountUtils.assignContext(this);
          MultiDex.install(this);
      }
  }
  </code></pre>
  
  <p>btw i tried with instant run disabling method: now i get verify error : like this :</p>
  
  <pre><code>FATAL EXCEPTION: main
                                                                          Process: com.Forewarn.ForewarnApp, PID: 1060
                                                                          java.lang.VerifyError: com/Forewarn/ForewarnApp/activities/SignInActivity
                                                                              at java.lang.Class.newInstanceImpl(Native Method)
                                                                              at java.lang.Class.newInstance(Class.java:1208)
                                                                              at android.app.Instrumentation.newActivity(Instrumentation.java:1061)
                                                                              at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2112)
                                                                              at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245)
                                                                              at android.app.ActivityThread.access$800(ActivityThread.java:135)
                                                                              at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)
                                                                              at android.os.Handler.dispatchMessage(Handler.java:102)
                                                                              at android.os.Looper.loop(Looper.java:136)
                                                                              at android.app.ActivityThread.main(ActivityThread.java:5017)
                                                                              at java.lang.reflect.Method.invokeNative(Native Method)
                                                                              at java.lang.reflect.Method.invoke(Method.java:515)
                                                                              at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
                                                                              at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
                                                                              at dalvik.system.NativeStart.main(Native Method)
  </code></pre>