-1

由于我是 android 新手,我对查找错误有疑问。如果我运行我的应用程序错误出现在设备上,说应用程序已停止运行强制关闭。如果我在 logcat 中看到错误,它会显示指向我的错误的链接。但是我想知道是什么错误。Logcat 重定向到发生错误的行,但我无法知道错误。如何确切知道错误是什么。任何人都可以帮助我..!

这是我认为的logcat错误soap对象序列化问题

10-22 09:38:29.194: D/dalvikvm(298): VFY: replacing opcode 0x22 at 0x0016
10-22 09:38:29.194: D/dalvikvm(298): VFY: dead code 0x0018-0072 in Lcom/retailer/client/RetailerActivity;.onCreate (Landroid/os/Bundle;)V
10-22 09:38:29.274: I/System.out(298): urn:training/
10-22 09:38:29.274: I/System.out(298): searchCompanyInfo
10-22 09:38:29.274: D/AndroidRuntime(298): Shutting down VM
10-22 09:38:29.304: W/dalvikvm(298): threadid=1: thread exiting with uncaught exception (group=0x4001d800)
10-22 09:38:29.314: E/AndroidRuntime(298): FATAL EXCEPTION: main
10-22 09:38:29.314: E/AndroidRuntime(298): java.lang.NoClassDefFoundError: org.ksoap2.serialization.SoapObject
10-22 09:38:29.314: E/AndroidRuntime(298):  at com.retailer.client.RetailerActivity.onCreate(RetailerActivity.java:24)
10-22 09:38:29.314: E/AndroidRuntime(298):  at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
10-22 09:38:29.314: E/AndroidRuntime(298):  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627)
10-22 09:38:29.314: E/AndroidRuntime(298):  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
10-22 09:38:29.314: E/AndroidRuntime(298):  at android.app.ActivityThread.access$2300(ActivityThread.java:125)
10-22 09:38:29.314: E/AndroidRuntime(298):  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
10-22 09:38:29.314: E/AndroidRuntime(298):  at android.os.Handler.dispatchMessage(Handler.java:99)
10-22 09:38:29.314: E/AndroidRuntime(298):  at android.os.Looper.loop(Looper.java:123)

这是什么错误?

10-22 11:21:28.794: D/AndroidRuntime(3285): Shutting down VM
10-22 11:21:28.824: W/dalvikvm(3285): threadid=1: thread exiting with uncaught exception (group=0x4001d800)
10-22 11:21:28.854: E/AndroidRuntime(3285): FATAL EXCEPTION: main
10-22 11:21:28.854: E/AndroidRuntime(3285): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.androidlogin.androidmysql/com.androidlogin.androidmysql.MainActivity}: java.lang.ClassNotFoundException: com.androidlogin.androidmysql.MainActivity in loader dalvik.system.PathClassLoader[/data/app/com.androidlogin.androidmysql-1.apk]
10-22 11:21:28.854: E/AndroidRuntime(3285):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2585)
10-22 11:21:28.854: E/AndroidRuntime(3285):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
10-22 11:21:28.854: E/AndroidRuntime(3285):     at android.app.ActivityThread.access$2300(ActivityThread.java:125)
10-22 11:21:28.854: E/AndroidRuntime(3285):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
10-22 11:21:28.854: E/AndroidRuntime(3285):     at android.os.Handler.dispatchMessage(Handler.java:99)
10-22 11:21:28.854: E/AndroidRuntime(3285):     at android.os.Looper.loop(Looper.java:123)
10-22 11:21:28.854: E/AndroidRuntime(3285):     at android.app.ActivityThread.main(ActivityThread.java:4627)
10-22 11:21:28.854: E/AndroidRuntime(3285):     at java.lang.reflect.Method.invokeNative(Native Method)
10-22 11:21:28.854: E/AndroidRuntime(3285):     at java.lang.reflect.Method.invoke(Method.java:521)
10-22 11:21:28.854: E/AndroidRuntime(3285):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
10-22 11:21:28.854: E/AndroidRuntime(3285):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
10-22 11:21:28.854: E/AndroidRuntime(3285):     at dalvik.system.NativeStart.main(Native Method)
10-22 11:21:28.854: E/AndroidRuntime(3285): Caused by: java.lang.ClassNotFoundException: com.androidlogin.androidmysql.MainActivity in loader dalvik.system.PathClassLoader[/data/app/com.androidlogin.androidmysql-1.apk]
10-22 11:21:28.854: E/AndroidRuntime(3285):     at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:243)
10-22 11:21:28.854: E/AndroidRuntime(3285):     at java.lang.ClassLoader.loadClass(ClassLoader.java:573)
10-22 11:21:28.854: E/AndroidRuntime(3285):     at java.lang.ClassLoader.loadClass(ClassLoader.java:532)
10-22 11:21:28.854: E/AndroidRuntime(3285):     at android.app.Instrumentation.newActivity(Instrumentation.java:1021)
10-22 11:21:28.854: E/AndroidRuntime(3285):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2577)
10-22 11:21:28.854: E/AndroidRuntime(3285):     ... 11 more
4

2 回答 2

1

我已通过下面给出的以下步骤修复了此错误。

解决方案:-

  • 更新你的应用
  • 清除 Gmail 存储数据
  • 清除应用缓存和数据
  • 重置应用偏好
  • 重置智能手机出厂设置

我在 YouTube 的帮助下找到了这些步骤。这是该链接:-

http://www.youtube.com/watch?v=fx8Fv8RXag8

于 2013-10-28T14:51:22.650 回答
0

如果您使用 eclipse,请转到项目属性,然后构建路径顺序和导出选项卡选择您的 jars

于 2013-10-22T04:51:27.483 回答