报错:Link of class 'Lcom/.../PersistentConnectionListener;' failed ...VFY: unable to resolve new-insta
2013-06-05 14:27
405 查看
在使用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
这样应该就可以解决问题了,再运行一遍试试吧~
可以关注我的公众号~
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
这样应该就可以解决问题了,再运行一遍试试吧~
可以关注我的公众号~
相关文章推荐
- 报错: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
- Failed to install ***.apk on device '019417a3': Unable to open sync connection!解决方法
- Unable to cast COM object of type Microsoft.Office.Interop.Excel.ApplicationClass' ...
- Unable to cast COM object of type 'System.__ComObject' to class type 的解决办法
- Conversion to Dalvik format failed with error 1 Type Unable to resolve target 'android-7'的解决办法
- Unable to resolve target 'Google Inc.:Google APIs和Open the Java build path property page of project
- Unable to cast COM object of type 'Word.ApplicationClass' to interface type 'Word._Application'"
- ASM ClassReader failed to parse class file - probably due to a new Java class file version that isn'
- failed to open gcomm backend connection: 13: error while trying to listen 'tcp:/
- android错误之Unable to resolve target 'Google Inc.:Google APIs:5'
- 在手机上Link of class 'Lcom/example/test/MainActivity;' failed
- Android Unable to resolve target 'android-8'
- Android Eclipse 加载外部工程后错误提示 Unable to resolve target 'android-3'的问题解决
- 解决Unable to resolve target 'android-**'
- Unable to resolve address ' ' service ' ': Name or service not known
- Unable to resolve superclass of Lcom/whaty/MainHomeActivity; (13)
- 使用gridlayout布局后,因某些原因又删除,并整理目录结构时,Unable to resolve target 'android-7'