android - java.lang.NoClassDefFoundError: org.jsoup.Jsoup -


i got error:

    java.lang.runtimeexception: error occured while executing doinbackground()     @ android.os.asynctask$3.done(asynctask.java:299)     @ java.util.concurrent.futuretask.finishcompletion(futuretask.java:352)     @ java.util.concurrent.futuretask.setexception(futuretask.java:219)     @ java.util.concurrent.futuretask.run(futuretask.java:239)     @ android.os.asynctask$serialexecutor$1.run(asynctask.java:230)     @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1080)     @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:573)     @ java.lang.thread.run(thread.java:849) caused by: java.lang.noclassdeffounderror: org.jsoup.jsoup 

the problem not android version error. example android 6 works whereas android 4.3 throws error. me do?

my build.gradle:

    apply plugin: 'com.android.application'  android {     compilesdkversion 23     buildtoolsversion "23.0.3"     defaultconfig {         applicationid 'com.test'         minsdkversion 15         targetsdkversion 23         versioncode 1         versionname "1"         multidexenabled true      }     buildtypes {         release {             minifyenabled false             proguardfiles getdefaultproguardfile('proguard-android.txt'), 'proguard-rules.pro'         }     }     productflavors {     } }  dependencies {     compile filetree(include: ['*.jar'], dir: 'libs')     testcompile 'junit:junit:4.12'     compile 'com.android.support:appcompat-v7:23.2.1'     compile 'com.android.support:design:23.2.1'     compile 'com.android.support:support-v4:23.2.1'     compile 'se.simbio.encryption:library:1.2.0'     compile 'com.google.android.gms:play-services:8.4.0'     compile files('libs/jsoup-1.9.2.jar')     compile 'com.google.android.gms:play-services-appindexing:8.4.0' } 

i have found solution. don´t know why had included whole 'play-services:8.4.0'. because of had enable multidexenabled , got noclassdeffounderror. without multidexenabled works.


Comments

Popular posts from this blog

angular - Is it possible to get native element for formControl? -

unity3d - Rotate an object to face an opposite direction -

javascript - Why jQuery Select box change event is now working? -