-
Notifications
You must be signed in to change notification settings - Fork 171
WARNING: Dependency org.json:json:20090211 is ignored for debug #13
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
Comments
Yeah, I know that but we can't remove the dependency since this library is not only for Android. |
I don't know a way to suppress the warnings however would it be possible to check if the OS being ran is android and to do something else? |
You can exclude json dependency from the module by adding the following lines in your build.gradle : compile ('com.github.nkzawa:socket.io-client:0.4.1'){ This worked for me : no warning anymore :) |
Thanks mdellerie, |
You're welcome! ;-) |
I was getting those annoying warnings as well and it solved my problem, thanks @mdellerie ! |
my pleasure ! ;) |
wow, thank's |
Thank you @mdellerie 👍 |
Added to README. Thanks, @mdellerie ! |
thanks @mdellerie |
@mdellerie I use this and after I add this it still not work 😢😥 |
@Chheata Use this: It's works for me. Thanks @mdellerie |
try to use this library. |
Hi guys! But doesn't work too! Error message as follows, help please? |
Many thanks, worked for me too |
@ladykat You must add comma))) |
great thanks mdellerie |
@serrokitskiy Hay Bro,thank alot for your answer. |
Warning:WARNING: Dependency org.json:json:20140107 is ignored for withAnalyticsDebug as it may be conflicting with the internal version provided by Android. how to solve this |
thanks .... : ) |
Hi!
But doesn't work! Error message as follows, help, please? Could not find method compile() for arguments [com.github.nkzawa:socket.io-client:0.4.1, build_7vmonel3c4y8lhnndnc10z8wh$_run_closure1$_closure3$_closure4@388f4cb] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler. |
Previously, the exclude was required( socketio/engine.io-client-java#13 ), but this was probably due to the fact that com.github.nkzawa:socket.io-client was used. Rather, now if you exclude it, you will get `java.lang.ClassNotFoundException: org.json.JSONException`.
I recently found this repository and so I added the compile statement to my build.gradle and it creates these warnings on debug:
WARNING: Dependency org.json:json:20090211 is ignored for debug as it may be conflicting with the internal version provided by Android.
In case of problem, please repackage with jarjar to change the class packages
WARNING: Dependency org.json:json:20090211 is ignored for release as it may be conflicting with the internal version provided by Android.
In case of problem, please repackage with jarjar to change the class packages
I'm running android 4.4.4 on my device.
The text was updated successfully, but these errors were encountered: