title: exception android.support.multidex.MultiDexApplication cannot be cast class
body: <p>I have a problem, my app generate this exception,and i don't understand.
  I have implement the multiDexEnabled in my build.gradle</p>
  
  <pre><code>  Caused by: java.lang.ClassCastException: android.support.multidex.MultiDexApplication cannot be cast to com.example.AnalyticsApplication
  </code></pre>
  
  <p><strong>My Class Java</strong></p>
  
  <pre><code>public class Splash extends Activity {
  
   private Tracker mTracker;
  
   @Override
   protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
  
    setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
    requestWindowFeature(Window.FEATURE_NO_TITLE);
    setContentView(R.layout.activity_splash);
  
    //Analitycs
    AnalyticsApplication application = (AnalyticsApplication) getApplication();
    mTracker = application.getDefaultTracker();
    mTracker.setScreenName("Splash");
    mTracker.send(new HitBuilders.ScreenViewBuilder().build());
  </code></pre>
  
  <p>}</p>
  
  <p><strong>file Gradle</strong></p>
  
  <pre><code> defaultConfig {
      multiDexEnabled true
  }
  </code></pre>
  
  <p><strong>Manifest.xml</strong></p>
  
  <pre><code>&lt;uses-permissionandroid:name="android.permission.INTERNET"/&gt;
  &lt;uses-permissionandroid:name="android.permission.ACCESS_NETWORK_STATE"/&gt;
  
  &lt;application
  android:name="android.support.multidex.MultiDexApplication"
  android:allowBackup="true"
  android:icon="@mipmap/ic_launcher"
  android:label="@string/app_name"
  android:supportsRtl="true"
  android:theme="@style/AppTheme"&gt;
  &lt;activityandroid:name=".Splash"&gt;
  &lt;intent-filter&gt;
  &lt;actionandroid:name="android.intent.action.MAIN"/&gt;
  &lt;categoryandroid:name="android.intent.category.LAUNCHER"/&gt;
  &lt;/intent-filter&gt;&lt;/activity&gt;
  &lt;/application&gt;
  </code></pre>