Skip to content
Advertisement

exception android.support.multidex.MultiDexApplication cannot be cast class

I have a problem, my app generate this exception,and i don’t understand. I have implement the multiDexEnabled in my build.gradle

JavaScript

My Class Java

JavaScript

}

file Gradle

JavaScript

Manifest.xml

JavaScript

Advertisement

Answer

I think you should extend the AnalyticsApplication class into your own class, like this:

JavaScript

After this, you must change your AndroidManifest.xml file to this:

JavaScript

Please, check this link for more information: http://developer.android.com/reference/android/support/multidex/MultiDex.html

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement