VFY: unable to resolve virtual method

android, dalvik, jackson

Solution

I had a similar problem; assuming you're using Eclipse, try the following:

- Right click on your project

- Go to Build Path > Configure Build Path...

- Click on the "Order and Export" tab

- Check the boxes next to your jars, then click OK

- Clean and Build your project, then see if it works.

Hopefully that works.

Problem

I am using Jackson in my android app. I have added these two jars in my build-path: ``` jackson-core-asl-1.0.0.jar jackson-mapper-asl-1.0.0.jar ``` But, I keep seeing this in my Logcat: ``` 11-24 18:25:15.093: I/dalvikvm(28842): Could not find method org.codehaus.jackson.map.ObjectMapper.getTypeFactory, referenced from method org.springframework.http.converter.json.MappingJacksonHttpMessageConverter.getJavaType 11-24 18:25:15.093: W/dalvikvm(28842): VFY: unable to resolve virtual method 17967: Lorg/codehaus/jackson/map/ObjectMapper;.getTypeFactory ()Lorg/codehaus/jackson/map/type/TypeFactory; ``` It's only on that method. I have searched StackOverflow on similar errors, but all of them were: - Libraries wrong versions (mine are correct) - Libraries not in /libs but in /lib (i have them in /libs) My Android version is 4.0.3. I am using this in combination with `Spring Android` libraries.

Original source