3

我正在使用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

我应该怎么做才能解决它谢谢。

4

1 回答 1

4

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

查看本文获取有关此主题的详细信息。

于 2012-04-16T10:42:17.217 回答