我使用了this链接来预制视频聊天。但是,它让java.lang.NoClassDefFoundError
无法找到:com.quickblox.module.chat.smack.SmackAndroid
类。我尝试更改图书馆的偏好但是没有帮助
这是日志:
03-22 18:14:21.476: I/dalvikvm(9908): Could not find method com.quickblox.module.chat.smack.SmackAndroid.init, referenced from method com.quickblox.videochatsample.ui.App.onCreate
03-22 18:14:21.476: W/dalvikvm(9908): VFY: unable to resolve static method 50: Lcom/quickblox/module/chat/smack/SmackAndroid;.init (Landroid/content/Context;)Lcom/quickblox/module/chat/smack/SmackAndroid;
03-22 18:14:21.476: D/dalvikvm(9908): VFY: replacing opcode 0x71 at 0x0003
03-22 18:14:21.481: D/AndroidRuntime(9908): Shutting down VM
03-22 18:14:21.481: W/dalvikvm(9908): threadid=1: thread exiting with uncaught exception (group=0x41927700)
03-22 18:14:21.486: E/AndroidRuntime(9908): FATAL EXCEPTION: main
03-22 18:14:21.486: E/AndroidRuntime(9908): java.lang.NoClassDefFoundError: com.quickblox.module.chat.smack.SmackAndroid
03-22 18:14:21.486: E/AndroidRuntime(9908): at com.quickblox.videochatsample.ui.App.onCreate(App.java:13)
03-22 18:14:21.486: E/AndroidRuntime(9908): at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1024)
03-22 18:14:21.486: E/AndroidRuntime(9908): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4684)
03-22 18:14:21.486: E/AndroidRuntime(9908): at android.app.ActivityThread.access$1400(ActivityThread.java:159)
03-22 18:14:21.486: E/AndroidRuntime(9908): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1376)
03-22 18:14:21.486: E/AndroidRuntime(9908): at android.os.Handler.dispatchMessage(Handler.java:99)
03-22 18:14:21.486: E/AndroidRuntime(9908): at android.os.Looper.loop(Looper.java:137)
03-22 18:14:21.486: E/AndroidRuntime(9908): at android.app.ActivityThread.main(ActivityThread.java:5419)
03-22 18:14:21.486: E/AndroidRuntime(9908): at java.lang.reflect.Method.invokeNative(Native Method)
03-22 18:14:21.486: E/AndroidRuntime(9908): at java.lang.reflect.Method.invoke(Method.java:525)
03-22 18:14:21.486: E/AndroidRuntime(9908): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1187)
03-22 18:14:21.486: E/AndroidRuntime(9908): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)
03-22 18:14:21.486: E/AndroidRuntime(9908): at dalvik.system.NativeStart.main(Native Method)
答案 0 :(得分:2)
转到构建路径并单击添加外部jar并添加quickbox-android-1.2.2.jar 然后转到Order and Export选项卡并检查jarfile复选框。清理并重建项目...