报错:Link of class 'Lcom/.../PersistentConnectionListener;' failed ...VFY: unable to resolve new-insta
来源:互联网 发布:西单附近美食知乎 编辑:程序博客网 时间:2024/04/20 00:23
在使用xmpp推送的时候报如下错:
06-05 14:12:10.710: W/dalvikvm(8735): Link of class 'Lcom/.../PersistentConnectionListener;' failed
06-05 14:12:10.710: E/dalvikvm(8735): Could not find class 'com.....PersistentConnectionListener', referenced from method com.....XmppManager.<init>06-05 14:12:10.710: W/dalvikvm(8735): VFY: unable to resolve new-instance 280 (Lcom/.../PersistentConnectionListener;) in Lcom/.../XmppManager;
06-05 14:12:10.710: W/dalvikvm(8735): VFY: unable to find class referenced in signature (Lorg/jivesoftware/smack/XMPPConnection;)
06-05 14:12:10.710: W/dalvikvm(8735): VFY: unable to resolve virtual method 1600: Lorg/jivesoftware/smack/XMPPConnection;.isConnected ()Z
06-05 14:12:10.710: W/dalvikvm(8735): VFY: unable to resolve virtual method 1600: Lorg/jivesoftware/smack/XMPPConnection;.isConnected ()Z
06-05 14:12:10.720: W/dalvikvm(8735): VFY: unable to find class referenced in signature (Lorg/jivesoftware/smack/XMPPConnection;)
06-05 14:12:10.720: W/dalvikvm(8735): VFY: unable to find class referenced in signature (Lorg/jivesoftware/smack/ConnectionListener;)
06-05 14:12:10.720: W/dalvikvm(8735): VFY: unable to find class referenced in signature (Lorg/jivesoftware/smack/PacketListener;)
06-05 14:12:10.720: W/dalvikvm(8735): VFY: unable to find class referenced in signature (Lorg/jivesoftware/smack/XMPPConnection;)
06-05 14:12:10.720: W/dalvikvm(8735): Link of class 'Lcom/.../PersistentConnectionListener;' failed
06-05 14:12:10.720: W/dalvikvm(8735): Link of class 'Lcom/.../NotificationPacketListener;' failed
06-05 14:12:10.720: W/dalvikvm(8735): threadid=1: thread exiting with uncaught exception (group=0x410bb9d8)
06-05 14:12:10.730: E/AndroidRuntime(8735): FATAL EXCEPTION: main
06-05 14:12:10.730: E/AndroidRuntime(8735): java.lang.NoClassDefFoundError: com.....PersistentConnectionListener
06-05 14:12:10.730: E/AndroidRuntime(8735): at com.....XmppManager.<init>(XmppManager.java:105)
06-05 14:12:10.730: E/AndroidRuntime(8735): at com.....NotificationService.onCreate(NotificationService.java:122)
06-05 14:12:10.730: E/AndroidRuntime(8735): at android.app.ActivityThread.handleCreateService(ActivityThread.java:2266)
06-05 14:12:10.730: E/AndroidRuntime(8735): at android.app.ActivityThread.access$1600(ActivityThread.java:126)
06-05 14:12:10.730: E/AndroidRuntime(8735): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1204)
06-05 14:12:10.730: E/AndroidRuntime(8735): at android.os.Handler.dispatchMessage(Handler.java:99)
06-05 14:12:10.730: E/AndroidRuntime(8735): at android.os.Looper.loop(Looper.java:137)
06-05 14:12:10.730: E/AndroidRuntime(8735): at android.app.ActivityThread.main(ActivityThread.java:4439)
06-05 14:12:10.730: E/AndroidRuntime(8735): at java.lang.reflect.Method.invokeNative(Native Method)
06-05 14:12:10.730: E/AndroidRuntime(8735): at java.lang.reflect.Method.invoke(Method.java:511)
06-05 14:12:10.730: E/AndroidRuntime(8735): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:787)
06-05 14:12:10.730: E/AndroidRuntime(8735): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:554)
06-05 14:12:10.730: E/AndroidRuntime(8735): at dalvik.system.NativeStart.main(Native Method)
解决方法:
检查需要的包是否已经导入,
如果包都已经导入的话,就对项目的libs之类的文件夹,也就是放要导入的jar包的文件夹右键->build path->use as source folder
这样应该就可以解决问题了,再运行一遍试试吧~
0 0
- 报错:Link of class 'Lcom/.../PersistentConnectionListener;' failed ...VFY: unable to resolve new-insta
- 报错:Link of class 'Lcom/.../PersistentConnectionListener;' failed ...VFY: unable to resolve new-insta
- 报错:Link of class 'Lcom/.../PersistentConnectionListener;' failed ...VFY: unable to resolve new-insta
- 报错:Link of class 'Lcom/.../PersistentConnectionListener;' failed ...VFY: unable to resolve new-insta
- 报错:Link of class 'Lcom/.../PersistentConnectionListener;' failed ...VFY: unable to resolve new-insta
- java.lang.NoClassDefFoundError:VFY: unable to resolve const-class
- (java.lang.NoClassDefFoundError: ) Unable to resolve superclass of Lcom
- Unable to resolve superclass of Lcom 问题解决记录
- Unable to resolve superclass of Lcom/whaty/MainHomeActivity; (13)
- Unable to resolve superclass of Lcom/example/view/MainActivity
- Link of class 'Lcom/jeremyfeinstein/slidingmenu/lib/app/SlidingFragmentActivity‘ failed
- 运行时的“VFY: unable to resolve static field”错误
- eclipse 报错Conversion to Dalvik format failed: Unable to execute dex: Multiple dex files define Lcom
- 报错: Conversion to Dalvik format failed: Unable to execute dex: Multiple dex files define Lcom/baidu/
- android 报错:Conversion to Dalvik format failed: Unable to execute dex: Multiple dex files define Lcom
- Unable to resolve superclass of Lcom/com/example/BaseActivity 解决方法之一
- 在手机上Link of class 'Lcom/example/test/MainActivity;' failed
- 报错Unable to resolve target android
- Unable to execute dex: Multiple dex files define 解决方法
- leetcode 278. First Bad Version
- CTreeCtrl树基础MFC知识
- 深入分析网络编程中踩过的坑
- hdu 2112 HDU Today 优先队列优化的Dijkstra+map
- 报错:Link of class 'Lcom/.../PersistentConnectionListener;' failed ...VFY: unable to resolve new-insta
- php JbGraph
- Bootstrap页面模板
- sql优化操作
- 前端随记
- 学习C风格字符串
- 在PHP中使用CURL,“撩”服务器只需几行——php curl详细解析和常见大坑
- 文言字词的理解
- Java Map容器小示例