I want to add the following code to Gradle hoping that the error will be solved.
Error:
java.lang.ClassNotFoundException:
- 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.ActivityThread.handleReceiver (ActivityThread.java:3676)
Code:
defaultConfig { ... minSdkVersion 14 targetSdkVersion // your version ... // Enabling multidex support. multiDexEnabled true } dependencies { compile 'com.android.support:multidex:1.0.0' }
Is there any way like making an extension? I searched the community for this error but I found the solution nowhere. Then I searched in google and found this code at Stackoverflow.