找不到类'org.codehaus.jackson.map.ObjectMapper'?

时间:2012-04-16 08:34:13

标签: android jar jackson

我正在使用jackson json解析器,我已经添加了“jackson-all-1.9.3.jar”,当我宣布

ObjectMapper objectMapper = null;

编译器识别它,但是当我在模拟器上运行我的应用程序时,我收到此错误。

04-16 16:27:13.037: I/System.out(435): waiting for debugger to settle...
04-16 16:27:13.245: I/System.out(435): debugger has settled (1417)
04-16 16:27:13.734: E/dalvikvm(435): Could not find class 'org.codehaus.jackson.map.ObjectMapper', referenced from method com.test.weather.GetweatherInfo.<init>
04-16 16:27:13.734: W/dalvikvm(435): VFY: unable to resolve new-instance 45 (Lorg/codehaus/jackson/map/ObjectMapper;) in Lcom/test/weather/GetweatherInfo

我该怎么做才能解决这个问题。

1 个答案:

答案 0 :(得分:4)

您需要在更新lib后将文件夹名称从libs更改为ADT 17

查看此 Article ,了解有关此主题的详细信息。