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

org.json dependency produces warnings when compiling dependent app #159

Closed
danhawkes opened this issue Jun 14, 2014 · 2 comments
Closed

Comments

@danhawkes
Copy link

ACRA has a compile-scope dependency on org.json:json, which causes warnings as it clashes with the version that's built into Android.

Builds with the android gradle plugin produce warnings like this:

Warning:Dependency org.json:json:20080701 is ignored for debug as it may be conflicting with the internal version provided by Android.

I think the fix is just to change the dependency's scope to 'provided':

<dependency>
  <groupId>org.json</groupId>
  <artifactId>json</artifactId>
  <version>20080701</version> 
  <scope>provided</scope>
</dependency>
@pyhrus
Copy link

pyhrus commented Jul 30, 2014

+1

@danhawkes
Copy link
Author

In the interim, you can exclude it in your app's build.gradle:

compile('ch.acra:acra:4.5.0') {
    exclude group: 'org.json'
}

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

3 participants