SimplicityApks / ReminderDatePicker

A Google Keep-like Date and Time Picker for reminders
Apache License 2.0
74 stars 26 forks source link

Importing library in Eclipse issue #8

Closed randomrandom closed 9 years ago

randomrandom commented 9 years ago

Hi, I'm trying to integrate the project into my application, but there is huge friction when trying to add it to Eclipse as a library. Can you provide a clear step by step tutorial of how to do it? The problem is that there are a lot of things that need to be changed (e.g. java folder should be renamed to src) in order to import the project correctly. Maybe I'm doing something wrong. I almost thought I had done everything right, the library had no errors but then when I tried to start my app there was ClassNotFoundException which I couldn't resolve. I think such detailed tutorial might be useful to other people using Eclipse. Thanks in advance!

SimplicityApks commented 9 years ago

Hi,

honestly I never tried to import it into eclipse since I haven't used the ADT for a long time... Are you sure you followed the guide on referencing libraries here closely? Well I guess I'll have to find the time to install Eclipse again and test things out myself ;).

SimplicityApks commented 9 years ago

Ok I found the time to import it into Eclipse and got the same error. The fix is actually quite simple, just right click on the java folder (not deeper in the hierarchy) and select Build Path-->Use as Source Folder. Then clean and rebuild and you should be ready to go ;). I had more problems setting up the support lib and the DateTimePicker with NineOldAndroids which are needed for it to compile though...

Honestly, it is just way easier with Android Studio and Gradle (where importing the lib is pasting one line xD), so I advise you to switch to that asap.