AnsweredAssumed Answered

java.lang.NoClassDefFoundError: org.jivesoftware.smackx.ping.PingManager

Question asked by Gunaseelan on Mar 30, 2016
Latest reply on Mar 30, 2016 by Gunaseelan

I am using following dependencies.

compile "org.igniterealtime.smack:smack-android-extensions:$smackVersion"
compile "org.igniterealtime.smack:smack-experimental:$smackVersion"
compile "org.igniterealtime.smack:smack-tcp:$smackVersion"

with

ext {

  smackVersion = '4.1.6'
}

also

ext {

  smackVersion = '4.1.5'
}

 

Still I am getting a following logcat error

 

java.lang.RuntimeException: Unable to create application com.app.data.Application: java.lang.RuntimeException: java.lang.ClassNotFoundException: com.app.data.connection.ConnectionManager

                                                                   at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4733)

                                                                   at android.app.ActivityThread.access$1600(ActivityThread.java:175)

                                                                   at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1368)

                                                                   at android.os.Handler.dispatchMessage(Handler.java:102)

                                                                   at android.os.Looper.loop(Looper.java:146)

                                                                   at android.app.ActivityThread.main(ActivityThread.java:5602)

                                                                   at java.lang.reflect.Method.invokeNative(Native Method)

                                                                   at java.lang.reflect.Method.invoke(Method.java:515)

                                                                   at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1283 )

                                                                   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1099)

                                                                   at dalvik.system.NativeStart.main(Native Method)

                                                                Caused by: java.lang.RuntimeException: java.lang.ClassNotFoundException: com.app.data.connection.ConnectionManager

                                                                   at com.app.data.Application.onCreate(Application.java:278)

                                                                   at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1013)

                                                                   at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4730)

                                                                   at android.app.ActivityThread.access$1600(ActivityThread.java:175)

                                                                   at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1368)

                                                                   at android.os.Handler.dispatchMessage(Handler.java:102)

                                                                   at android.os.Looper.loop(Looper.java:146)

                                                                   at android.app.ActivityThread.main(ActivityThread.java:5602)

                                                                   at java.lang.reflect.Method.invokeNative(Native Method)

                                                                   at java.lang.reflect.Method.invoke(Method.java:515)

                                                                   at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1283 )

                                                                   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1099)

                                                                   at dalvik.system.NativeStart.main(Native Method)

                                                                Caused by: java.lang.ClassNotFoundException: com.app.data.connection.ConnectionManager

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

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

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

                                                                   at com.app.data.Application.onCreate(Application.java:276)

                                                                   at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1013)

                                                                   at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4730)

                                                                   at android.app.ActivityThread.access$1600(ActivityThread.java:175)

                                                                   at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1368)

                                                                   at android.os.Handler.dispatchMessage(Handler.java:102)

                                                                   at android.os.Looper.loop(Looper.java:146)

                                                                   at android.app.ActivityThread.main(ActivityThread.java:5602)

                                                                   at java.lang.reflect.Method.invokeNative(Native Method)

                                                                   at java.lang.reflect.Method.invoke(Method.java:515)

                                                                   at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1283 )

                                                                   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1099)

                                                                   at dalvik.system.NativeStart.main(Native Method)

                                                                Caused by: java.lang.NoClassDefFoundError: org.jivesoftware.smackx.ping.PingManager

                                                                   at com.app.data.connection.ConnectionManager.<init>(ConnectionManager.java:95)

                                                                   at com.app.data.connection.ConnectionManager.<clinit>(ConnectionManager.java:64)

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

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

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

                                                                   at com.app.data.Application.onCreate(Application.java:276)

                                                                   at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1013)

                                                                   at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4730)

                                                                   at android.app.ActivityThread.access$1600(ActivityThread.java:175)

                                                                   at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1368)

                                                                   at android.os.Handler.dispatchMessage(Handler.java:102)

                                                                   at android.os.Looper.loop(Looper.java:146)

                                                                   at android.app.ActivityThread.main(ActivityThread.java:5602)

                                                                   at java.lang.reflect.Method.invokeNative(Native Method)

                                                                   at java.lang.reflect.Method.invoke(Method.java:515)

 

Can anyone help me regards this issue.

Note : Still yesterday app worked well. From today only I am facing this issue.

Outcomes