title: NoClassDefFoundError using Jackson 2.2.x on Android with Gradle
body: <p>For my Android project I set up Gradle with <a href="https://github.com/FasterXML/jackson">Jackson 2.2.x</a> as follows:</p>
  
  <p></p>
  
  <pre><code>// build.gradle
  buildscript {
      repositories {
          mavenCentral()
      }
      dependencies {
          classpath 'com.android.tools.build:gradle:0.6.+'
      }
  }
  apply plugin: 'android'
  
  repositories {
      mavenCentral()
  }
  
  android {
      compileSdkVersion 18
      buildToolsVersion "18.1.0"
  
      defaultConfig {
          minSdkVersion 8
          targetSdkVersion 18
      }
  }
  
  dependencies {
      compile 'com.android.support:appcompat-v7:18.0.0'
      compile 'com.android.support:support-v4:18.0.0'
      compile 'com.google.android.gms:play-services:3.1.36'
      compile 'com.fasterxml.jackson.core:jackson-databind:2.2.+'
      compile 'com.fasterxml.jackson.core:jackson-core:2.2.+'
      compile 'com.fasterxml.jackson.core:jackson-annotations:2.2.+'
  }
  </code></pre>
  
  <p>I simply use the <code>ObjectMapper</code> here:</p>
  
  <pre><code>import com.fasterxml.jackson.databind.ObjectMapper;
  
  // ...
  
  ObjectMapper objectMapper = new ObjectMapper();
  try {
      Content content = objectMapper.readValue(inputStream, Content.class);
  } catch (IOException e) {
      e.printStackTrace();
  }
  </code></pre>
  
  <p>When I run <code>gradle installDebug</code> and launch the relevant part of the application it crashes:</p>
  
  <blockquote>
    <p>java.lang.NoClassDefFoundError: com.fasterxml.jackson.databind.ObjectMapper</p>
  </blockquote>
  
  <hr>
  
  <h2>Thoughts:</h2>
  
  <ul>
  <li>I noticed that in the error message <code>com.fasterxml.jackson...</code> is mentioned while <code>com.fasterxml.jackson.core</code> is defined in <code>build.gradle</code>. Is there a mismatch causing the problem?</li>
  <li>I temporarily moved the <code>dependencies</code> block into the <code>android</code> block since I <a href="https://github.com/ligi/FAST/blob/4.3/app/build.gradle">found other <code>build.gradle</code> configurations</a> structured this way. However it seems to make no difference.</li>
  </ul>