AnsweredAssumed Answered

  Smack-4.1.7 Caused by: java.lang.NoClassDefFoundError:

Question asked by James on May 25, 2016

05-26 03:24:22.870 3139-3162/? E/AndroidRuntime: FATAL EXCEPTION: AsyncTask #1

                                                 Process: com.chi.im, PID: 3139

                                                 java.lang.RuntimeException: An error occured while executing doInBackground()

                                                     at android.os.AsyncTask$3.done(AsyncTask.java:300)

                                                     at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:355)

                                                     at java.util.concurrent.FutureTask.setException(FutureTask.java:222)

                                                     at java.util.concurrent.FutureTask.run(FutureTask.java:242)

                                                     at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231)

                                                     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)

                                                     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)

                                                     at java.lang.Thread.run(Thread.java:818)

                                                  Caused by: java.lang.NoClassDefFoundError: Failed resolution of: Lde/measite/minidns/Client;

                                                     at org.jivesoftware.smack.util.dns.minidns.MiniDnsResolver.<init>(MiniDnsResolver. java:51)

                                                     at org.jivesoftware.smack.util.dns.minidns.MiniDnsResolver.<clinit>(MiniDnsResolve r.java:46)

                                                     at java.lang.Class.classForName(Native Method)

                                                     at java.lang.Class.forName(Class.java:308)

                                                     at org.jivesoftware.smack.SmackInitialization.loadSmackClass(SmackInitialization.j ava:213)

                                                     at org.jivesoftware.smack.SmackInitialization.parseClassesToLoad(SmackInitializati on.java:193)

                                                     at org.jivesoftware.smack.SmackInitialization.processConfigFile(SmackInitializatio n.java:163)

                                                     at org.jivesoftware.smack.SmackInitialization.processConfigFile(SmackInitializatio n.java:148)

                                                     at org.jivesoftware.smack.SmackInitialization.<clinit>(SmackInitialization.java:11 6)

                                                     at org.jivesoftware.smack.SmackConfiguration.getVersion(SmackConfiguration.java:96 )

                                                     at org.jivesoftware.smack.ConnectionConfiguration.<clinit>(ConnectionConfiguration .java:38)

                                                     at com.chi.im.LoginActivity$LoaginAsynicTask.doInBackground(LoginActivity.java:150 )

                                                     at com.chi.im.LoginActivity$LoaginAsynicTask.doInBackground(LoginActivity.java:142 )

                                                     at android.os.AsyncTask$2.call(AsyncTask.java:288)

                                                     at java.util.concurrent.FutureTask.run(FutureTask.java:237)

                                                     at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231)

                                                     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)

                                                     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)

                                                     at java.lang.Thread.run(Thread.java:818)

                                                  Caused by: java.lang.ClassNotFoundException: Didn't find class "de.measite.minidns.Client" on path: DexPathList[[dex file "/data/data/com.chi.im/files/instant-run/dex/slice-support-annotations-23.3.0_f 7486936d20fe5cecace9f191cb695dc35bd15ff-classes.dex", dex file "/data/data/com.chi.im/files/instant-run/dex/slice-smack-tcp-4.1.7_a2b0821fc6d74ea4aedf5f03637a30f4eaa11cdf-classes .dex", dex file "/data/data/com.chi.im/files/instant-run/dex/slice-smack-sasl-provided-4.1.7_da e9aee08cbc9599ef0a6d99799c5a98b2dfd9a3-classes.dex", dex file "/data/data/com.chi.im/files/instant-run/dex/slice-smack-resolver-minidns-4.1.7 _d7569f833700bebfd7b88cd5331c9c5bc0371381-classes.dex", dex file "/data/data/com.chi.im/files/instant-run/dex/slice-smack-legacy-4.1.7_714148dca a1ad9d6237bb4388f9b16cc69b7d2d6-classes.dex", dex file "/data/data/com.chi.im/files/instant-run/dex/slice-smack-jingle-old-4.1.7_6879b b04665cba73ec28716883b75d4321436bbb-classes.dex", dex file "/data/data/com.chi.im/files/instant-run/dex/slice-smack-im-4.1.7_ee9f5b91d2bd1 139e5f0cc6384737b0a78e53589-classes.dex", dex file "/data/data/com.chi.im/files/instant-run/dex/slice-smack-extensions-4.1.7_cb5fd b384516edaff7922553c18dec65b876b562-classes.dex", dex file "/data/data/com.chi.im/files/instant-run/dex/slice-smack-experimental-4.1.7_bc0 9084f210a9559f7886fa09a93cff885299040-classes.dex", dex file "/data/data/com.chi.im/files/instant-run/dex/slice-smack-debug-slf4j-4.1.7_6d1e 59dd9a8d4db2cea1820315fea62b8a8aa300-classes.dex", dex file "/data/data/com.chi.im/files/instant-run/dex/slice-smack-debug-4.1.7_6d75150e0c 30bb53a8f7f11522e39821de3f7785-classes.dex", dex file "/data/data/com.chi.im/files/instant-run/dex/slice-smack-core-4.1.7_3ecf20bd127 ee923b8f0aae215252e5277123e33-classes.dex", dex file "/data/data/com.chi.im/files/instant-run/dex/slice-smack-compression-jzlib-4.1. 7_a20e5967d178a5a69e021f3f0c4a36685f46e737-classes.dex", dex file "/data/data/com.chi.im/files/instant-run/dex/slice-smack-bosh-4.1.7_aa2cbc3de09 d3fea759f4e62f211c7cb9e6468ad-classes.dex", dex file "/data/data/com.chi.im/files/instant-r

05-26 03:24:22.903 1125-1125/? E/EGL_emulation: tid 1125: eglCreateSyncKHR(1315): error 0x3004 (EGL_BAD_ATTRIBUTE)

 

 

 

 

 

while  android api 21 androi  or abover will  occur  mistake ,but  api 19  is  ok,  why??Matt TuckerbenjaminGaston DombiakBen DavisRyan Graham@

Outcomes