gpt4 book ai didi

java.lang.RuntimeException : An error occured while executing doInBackground() Android RSS Reader 错误

转载 作者:行者123 更新时间:2023-11-30 09:20:55 24 4
gpt4 key购买 nike

我已经下载了 http://techiedreams.com/android-rss-reader-part-3-action-bar-with-animated-item/尝试创建一个自定义 RSS 阅读器一段时间,但最近它开始出现问题,起初我认为这是我自己的错,但后来我重新下载了前三个版本(顺便说一下,在我使用它们的 5 周内,它们运行良好) 它很棒,我只是对其进行了一些定制,以获得一些 Java 和 Android 编程经验

但是,我一直陷入困境,不知道该怎么做才能解决这个问题。

这是我的 Activity LogCat 日志(这只是我下载 RSS 阅读器时出现的错误,我将其链接了一点)它应该加载 RSS 提要并初始化 ListActivity。

06-19 12:20:06.750: D/dalvikvm(30977): GC_FOR_ALLOC freed 67K, 7% free 12338K/13127K, paused 25ms, total 26ms
06-19 12:20:06.750: I/dalvikvm-heap(30977): Grow heap (frag case) to 12.935MB for 337616-byte allocation
06-19 12:20:06.760: D/dalvikvm(30977): GC_FOR_ALLOC freed <1K, 7% free 12666K/13511K, paused 9ms, total 9ms
06-19 12:20:06.905: I/dalvikvm(30977): Could not find method org.jsoup.Jsoup.parse, referenced from method com.td.rssreader.parser.DOMParser.parseXml
06-19 12:20:06.915: D/libEGL(30977): loaded /system/lib/egl/libEGL_mali.so
06-19 12:20:06.925: D/libEGL(30977): loaded /system/lib/egl/libGLESv1_CM_mali.so
06-19 12:20:06.925: D/libEGL(30977): loaded /system/lib/egl/libGLESv2_mali.so
06-19 12:20:06.930: D/(30977): Device driver API match
06-19 12:20:06.930: D/(30977): Device driver API version: 10
06-19 12:20:06.930: D/(30977): User space API version: 10
06-19 12:20:06.935: D/(30977): mali: REVISION=Linux-r2p4-02rel0 BUILD_DATE=Tue Oct 16 15:37:13 KST 2012
06-19 12:20:06.975: D/OpenGLRenderer(30977): Enabling debug mode 0
06-19 12:20:07.005: W/dalvikvm(30977): VFY: unable to resolve static method 267: Lorg/jsoup/Jsoup;.parse (Ljava/lang/String;)Lorg/jsoup/nodes/Document;
06-19 12:20:07.005: D/dalvikvm(30977): VFY: replacing opcode 0x71 at 0x00b6
06-19 12:20:10.485: D/dalvikvm(31065): GC_FOR_ALLOC freed 70K, 7% free 12338K/13127K, paused 16ms, total 16ms
06-19 12:20:10.490: I/dalvikvm-heap(31065): Grow heap (frag case) to 12.935MB for 337616-byte allocation
06-19 12:20:10.520: D/dalvikvm(31065): GC_FOR_ALLOC freed <1K, 7% free 12666K/13511K, paused 12ms, total 12ms
06-19 12:20:10.555: I/dalvikvm(31065): Could not find method org.jsoup.Jsoup.parse, referenced from method com.td.rssreader.parser.DOMParser.parseXml
06-19 12:20:10.555: W/dalvikvm(31065): VFY: unable to resolve static method 267: Lorg/jsoup/Jsoup;.parse (Ljava/lang/String;)Lorg/jsoup/nodes/Document;
06-19 12:20:10.555: D/dalvikvm(31065): VFY: replacing opcode 0x71 at 0x00b6
06-19 12:20:10.610: D/libEGL(31065): loaded /system/lib/egl/libEGL_mali.so
06-19 12:20:10.620: D/libEGL(31065): loaded /system/lib/egl/libGLESv1_CM_mali.so
06-19 12:20:10.625: D/libEGL(31065): loaded /system/lib/egl/libGLESv2_mali.so
06-19 12:20:10.625: D/(31065): Device driver API match
06-19 12:20:10.625: D/(31065): Device driver API version: 10
06-19 12:20:10.625: D/(31065): User space API version: 10
06-19 12:20:10.625: D/(31065): mali: REVISION=Linux-r2p4-02rel0 BUILD_DATE=Tue Oct 16 15:37:13 KST 2012
06-19 12:20:10.670: D/OpenGLRenderer(31065): Enabling debug mode 0
06-19 12:20:11.255: D/dalvikvm(31065): GC_CONCURRENT freed 387K, 8% free 12736K/13703K, paused 4ms+11ms, total 32ms
06-19 12:20:11.360: D/dalvikvm(31065): GC_CONCURRENT freed 261K, 7% free 12876K/13767K, paused 11ms+11ms, total 34ms
06-19 12:20:11.425: D/dalvikvm(31065): GC_CONCURRENT freed 371K, 7% free 13071K/14023K, paused 11ms+1ms, total 23ms
06-19 12:20:11.425: D/dalvikvm(31065): WAIT_FOR_CONCURRENT_GC blocked 4ms
06-19 12:20:11.500: D/dalvikvm(31065): GC_CONCURRENT freed 376K, 7% free 13245K/14215K, paused 11ms+11ms, total 36ms
06-19 12:20:11.560: D/dalvikvm(31065): GC_CONCURRENT freed 361K, 7% free 13382K/14343K, paused 12ms+2ms, total 26ms
06-19 12:20:11.615: D/dalvikvm(31065): GC_CONCURRENT freed 361K, 7% free 13590K/14535K, paused 2ms+2ms, total 17ms
06-19 12:20:11.615: D/dalvikvm(31065): WAIT_FOR_CONCURRENT_GC blocked 5ms
06-19 12:20:11.645: D/dalvikvm(31065): GC_FOR_ALLOC freed 274K, 7% free 13646K/14663K, paused 11ms, total 11ms
06-19 12:20:11.660: D/dalvikvm(31065): GC_FOR_ALLOC freed 116K, 8% free 13723K/14791K, paused 11ms, total 11ms
06-19 12:20:11.690: D/dalvikvm(31065): GC_CONCURRENT freed 412K, 7% free 13859K/14855K, paused 1ms+1ms, total 13ms
06-19 12:20:11.690: D/dalvikvm(31065): WAIT_FOR_CONCURRENT_GC blocked 5ms
06-19 12:20:11.740: D/dalvikvm(31065): GC_CONCURRENT freed 452K, 7% free 14011K/15047K, paused 12ms+2ms, total 25ms
06-19 12:20:11.740: D/dalvikvm(31065): WAIT_FOR_CONCURRENT_GC blocked 4ms
06-19 12:20:11.770: W/dalvikvm(31065): threadid=11: thread exiting with uncaught exception (group=0x40fc92a0)
06-19 12:20:11.775: E/AndroidRuntime(31065): FATAL EXCEPTION: AsyncTask #1
06-19 12:20:11.775: E/AndroidRuntime(31065): java.lang.RuntimeException: An error occured while executing doInBackground()
06-19 12:20:11.775: E/AndroidRuntime(31065): at android.os.AsyncTask$3.done(AsyncTask.java:299)
06-19 12:20:11.775: E/AndroidRuntime(31065): at java.util.concurrent.FutureTask$Sync.innerSetException(FutureTask.java:273)
06-19 12:20:11.775: E/AndroidRuntime(31065): at java.util.concurrent.FutureTask.setException(FutureTask.java:124)
06-19 12:20:11.775: E/AndroidRuntime(31065): at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:307)
06-19 12:20:11.775: E/AndroidRuntime(31065): at java.util.concurrent.FutureTask.run(FutureTask.java:137)
06-19 12:20:11.775: E/AndroidRuntime(31065): at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:230)
06-19 12:20:11.775: E/AndroidRuntime(31065): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)
06-19 12:20:11.775: E/AndroidRuntime(31065): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
06-19 12:20:11.775: E/AndroidRuntime(31065): at java.lang.Thread.run(Thread.java:856)
06-19 12:20:11.775: E/AndroidRuntime(31065): Caused by: java.lang.NoClassDefFoundError: org.jsoup.Jsoup
06-19 12:20:11.775: E/AndroidRuntime(31065): at com.td.rssreader.parser.DOMParser.parseXml(DOMParser.java:71)
06-19 12:20:11.775: E/AndroidRuntime(31065): at com.td.rssreader.SplashActivity$AsyncLoadXMLFeed.doInBackground(SplashActivity.java:104)
06-19 12:20:11.775: E/AndroidRuntime(31065): at com.td.rssreader.SplashActivity$AsyncLoadXMLFeed.doInBackground(SplashActivity.java:1)
06-19 12:20:11.775: E/AndroidRuntime(31065): at android.os.AsyncTask$2.call(AsyncTask.java:287)
06-19 12:20:11.775: E/AndroidRuntime(31065): at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
06-19 12:20:11.775: E/AndroidRuntime(31065): ... 5 more

如果需要,我可以在这里发布代码,但它也可以下载 http://techiedreams.com/android-rss-reader-part-3-action-bar-with-animated-item/在这里。

请注意,这一切过去很长一段时间都有效,直到昨天才开始出现这种情况。

谁能告诉我这是怎么回事。 .

最佳答案

如果仔细浏览日志,您会发现根本原因。

引起:java.lang.NoClassDefFoundError: org.jsoup.Jsoup

这会立即告诉您 jsoup 库在 android 中找不到。我过去遇到过类似的问题,android 无法找到这些库。我已按照这些步骤纠正问题。

  1. 在 eclipse 中打开“配置构建路径”
  2. 转到订购和导出标签
  3. 检查有问题的图书馆。

这应该可以解决问题。

关于java.lang.RuntimeException : An error occured while executing doInBackground() Android RSS Reader 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17189011/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com