java.lang.RuntimeException: Unable to start activity ComponentInfo{es.in2.otr.app.im/es.in2.otr.app.im.app.WelcomeActivity}: java.lang.ClassCastException: android.app.Application cannot be cast to es.in2.otr.app.im.app.ImApp

Stack Overflow | Shudy | 5 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Trying to set MultiDexApplication , ClassCastException

    Stack Overflow | 5 months ago | Shudy
    java.lang.RuntimeException: Unable to start activity ComponentInfo{es.in2.otr.app.im/es.in2.otr.app.im.app.WelcomeActivity}: java.lang.ClassCastException: android.app.Application cannot be cast to es.in2.otr.app.im.app.ImApp

    Root Cause Analysis

    1. java.lang.ClassCastException

      android.app.Application cannot be cast to es.in2.otr.app.im.app.ImApp

      at es.in2.otr.app.im.app.ThemeableActivity.onCreate()
    2. es.in2.otr
      WelcomeActivity.onCreate
      1. es.in2.otr.app.im.app.ThemeableActivity.onCreate(ThemeableActivity.java:40)
      2. es.in2.otr.app.im.app.WelcomeActivity.onCreate(WelcomeActivity.java:98)
      2 frames
    3. Android Platform
      ActivityThread.performLaunchActivity
      1. android.app.Activity.performCreate(Activity.java:6876)
      2. android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1135)
      3. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3207)
      3 frames