Android Studio trouble setting up Jackson Parser on gradle
<p>I'm having trouble adding the Jackson Parser dependency to my project.</p>

<p>Currently I'm using these lines of code on my build.gradle:</p>

<pre><code>compile 'com.fasterxml.jackson.core:jackson-core:2.7.2'
compile 'com.fasterxml.jackson.core:jackson-annotations:2.7.2'
compile 'com.fasterxml.jackson.core:jackson-databind:2.7.2'
</code></pre>

<p><br>The only Class I need is the ObjectMapper that I know it is in databind package. When I added these lines in the gradle I pressed the sync and everything did correctly.</p>

<p>The problem was running the project on the emulator, this error showed up in Messages in Android Studio:</p>

<blockquote>
  <p>Error:Execution failed for task
  ':app:transformResourcesWithMergeJavaResForDebug'.</p>
  
  <blockquote>
    <p>com.android.build.api.transform.TransformException: com.android.builder.packaging.DuplicateFileException: Duplicate files
    copied in APK META-INF/NOTICE     File1:
    C:\Users\Igor.gradle\caches\modules-2\files-2.1\com.fasterxml.jackson.core\jackson-databind\2.7.2\84ffa765dd258dbab8695963c41308b054f3a1cb\jackson-databind-2.7.2.jar
      File2:
    C:\Users\Igor.gradle\caches\modules-2\files-2.1\com.fasterxml.jackson.core\jackson-core\2.7.2\8b8310381b690e317f5f0574e9b2dd7034778b4c\jackson-core-2.7.2.jar</p>
  </blockquote>
</blockquote>

<p><br>I tried to left only the databind library but I got no lucky with that. Same error. </p>

<pre><code>compile 'com.fasterxml.jackson.core:jackson-databind:2.7.2'
</code></pre>

<p><br>I tried <code>Build -&gt; Clean Project</code> and deleting the .gradle/cache but no luck either.</p>

<p><br>I have no clue what this could be. Any suggestions?</p>