Android:存在的类和无法找到的Logcat日志

时间:2012-04-05 11:40:33

标签: android classnotfound

我尝试将笔记本电脑上开发的项目导入另一台PC。

我确信该项目在我的笔记本电脑上运行良好,但在新的电脑上,应用程序崩溃告诉我它找不到类:

04-05 10:32:26.802: D/dalvikvm(568): GC_EXTERNAL_ALLOC freed 1062 objects / 72728 bytes in 48ms
04-05 10:32:28.492: D/dalvikvm(568): GC_EXTERNAL_ALLOC freed 270 objects / 14312 bytes in 39ms
04-05 10:32:28.653: D/dalvikvm(568): GC_EXTERNAL_ALLOC freed 77 objects / 3184 bytes in 37ms
04-05 10:32:29.242: E/dalvikvm(568): Could not find class 'org.codehaus.jackson.map.ObjectMapper', referenced from method com.test.two.MockRecipesControllerString.<init>
04-05 10:32:29.653: W/dalvikvm(568): VFY: unable to resolve new-instance 710 (Lorg/codehaus/jackson/map/ObjectMapper;) in Lcom/test/two/MockRecipesControllerString;
04-05 10:32:29.653: D/dalvikvm(568): VFY: replacing opcode 0x22 at 0x000e
04-05 10:32:29.693: D/dalvikvm(568): VFY: dead code 0x0010-001e in Lcom/test/two/MockRecipesControllerString;.<init> (Ljava/io/InputStream;)V
04-05 10:32:29.733: I/dalvikvm(568): Could not find method org.codehaus.jackson.JsonFactory.createJsonParser, referenced from method com.test.two.MockRecipesControllerString.init

库和类存在。

我该怎么做才能解决问题?

提前致谢。

2 个答案:

答案 0 :(得分:1)

假设类ObjectMapper(org.codehaus.jackson.map.ObjectMapper)作为Lib存在于Jar文件中,再次添加Lib..Clean构建项目..它将工作..

答案 1 :(得分:0)

选择您的项目右键单击 - &gt;属性 - &gt;检查你在java中构建路径添加库这可能会有所帮助..