The exception indicates that you are missing a required Jackson dependency. First, I recommend using MappingJackson2HttpMessageConverter
instead of the MappingJacksonHttpMessageConverter
which you've configured:
rest.getMessageConverters().add(new MappingJackson2HttpMessageConverter());
Next, MappingJackson2HttpMessageConverter
depends on the Jackson 2 library for its functionality, which requires the following files be on your classpath:
- jackson-databind-2.3.2.jar
- jackson-annotations-2.3.2.jar
- jackson-core-2.3.2.jar
You already have jackson-databind-2.3.2.jar
in your libs
folder, so you need to download the other two jars.
Lastly, I highly recommend using a dependency management system like the Gradle plugin in Android's New Build System. It will handle downloading all the transitive dependencies for you instead of having to manually do that.