GOOGLE PLAY :java.lang.ClassNotFoundException dalvik.system.BaseDexClassLoader.findClass

Jyotishgher Astrology
By -
0
GOOGLE PLAY :java.lang.ClassNotFoundException  dalvik.system.BaseDexClassLoader.findClass



ERROR:

java.lang.NoClassDefFoundError:
at com.android.volley.toolbox.HurlStack.performRequest (HurlStack.java:109)
at com.android.volley.toolbox.BasicNetwork.performRequest (BasicNetwork.java:96)
at com.android.volley.NetworkDispatcher.run (NetworkDispatcher.java:112)
Caused by: java.lang.ClassNotFoundException:
at dalvik.system.BaseDexClassLoader.findClass (BaseDexClassLoader.java:134)
at java.lang.ClassLoader.loadClass (ClassLoader.java:379)
at java.lang.ClassLoader.loadClass (ClassLoader.java:312)


SOLUTIONS:



This could be a MultiDex issue. Try this in your application class. That is in App.javawhich extends Application:

CREATE write a class appcontroler.AppController AND add in it
:
  //java.lang.ClassNotFoundException: Didn't find class on path: dexpathlist    @Override    protected void attachBaseContext(Context base) {
        super.attachBaseContext(base);
        MultiDex.install(this); // this is the key code    }

//java.lang.ClassNotFoundException: Didn't find class on path: dexpathlist

MANIFEST HAVE TO ADD

<application    android:name=".appcontroler.AppController"


ROOT STAGE BUILD FILES ADD BELOW LINES
defaultConfig {
    ...
    minSdkVersion 14
    targetSdkVersion 21
    ...

    // Enabling multidex support.
    multiDexEnabled true
}

 dependencies {
     compile 'com.android.support:multidex:1.0.0'
 }

Just try Clean Project & Rebuild Project.

Post a Comment

0Comments

Post a Comment (0)