Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A "json4s" dependency causes a build failure #51

Open
nikita-volkov opened this issue Feb 13, 2015 · 3 comments
Open

A "json4s" dependency causes a build failure #51

nikita-volkov opened this issue Feb 13, 2015 · 3 comments

Comments

@nikita-volkov
Copy link

Adding a org.json4s:json4s-jackson_2.11:3.2.11 dependency results in

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':packageDebug'.
> Duplicate files copied in APK decoder.properties
    File 1: /Users/mojojojo/.gradle/caches/modules-2/files-2.1/org.scala-lang/scalap/2.11.0/4d1ef078a977e29c32d539fac2900ca56f17fb85/scalap-2.11.0.jar
    File 2: /Users/mojojojo/.gradle/caches/modules-2/files-2.1/org.scala-lang/scalap/2.11.0/4d1ef078a977e29c32d539fac2900ca56f17fb85/scalap-2.11.0.jar
@saturday06
Copy link
Owner

Hi,

Please add following code to your build.gradle and try again.

android {
  packagingOptions { 
    exclude 'decoder.properties'
  }
}

@nikita-volkov
Copy link
Author

Yes. I've worked around this by ending up with the following set up:

  packagingOptions {
    exclude 'META-INF/LICENSE'
    exclude 'META-INF/LICENSE.txt'
    exclude 'META-INF/NOTICE'
    exclude 'META-INF/NOTICE.txt'
    exclude 'decoder.properties'
    exclude 'rootdoc.txt'
  }

I just thought that it should be solved on the plugin level.

@saturday06
Copy link
Owner

I just thought that it should be solved on the plugin level.

I agree with you. But this is official plugin's problem. See also: https://code.google.com/p/android/issues/detail?id=61573

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants