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

Conflict in gradle #3

Closed
krunal09 opened this issue Nov 13, 2015 · 1 comment
Closed

Conflict in gradle #3

krunal09 opened this issue Nov 13, 2015 · 1 comment

Comments

@krunal09
Copy link

While importing this project , i m getting a following error at the time of compilation:

UNEXPECTED TOP-LEVEL EXCEPTION:
com.android.dex.DexException: Multiple dex files define Lorg/joda/time/Chronology;

There is a conflict between JodaAndroidTime & joda-time.
compile 'net.danlew:android.joda:2.9.0'
compile 'joda-time:joda-time:2.8.2' in gradle

I m using compile 'net.danlew:android.joda:2.9.0' for
//Initializing JodaTime
JodaTimeAndroid.init(mContext);

@rameshvoltella
Copy link
Owner

The joda file used in the main library is compile 'net.danlew:android.joda:2.8.1' if you check https://github.com/rameshvoltella/RWeekCalendar/blob/master/RamzCalSample/ramzcalender/build.gradle

link you can find, this is the problem for the conflict, i dont think you need to add joda lib in your main gridle file again.
If you want to use your joda lib just replace the joda library compile line from the main calender gradle and replace it with yours.

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