SlideDateTimePicker
SlideDateTimePicker copied to clipboard
Library Setup
Hi, i tried adding compile project(':slideDateTimePicker') in my build.gradle, but getting Error:(30, 0) Project with path ':slideDateTimePicker' could not be found in project ':app'. any help on how i can fix this, thanks
Is the library project on the same directory level as your main project?
Hi scariest, just wanted to let you know I'm working right now to get this library published on jCenter so you'll be able to include it as a remote binary dependency in your build.gradle
.
thanks for the quick reply, yes it is, okay, thanks, will be looking forward to it :)
Okay, but I'm glad to help if you're still having trouble. I would just need more info on your current setup, for instance your project's directory structure. Otherwise I'll let you know when it's up on JCenter.
i have attached the a screen shot to this post, it contains the structure
In Windows File Explorer, make sure the directory structure looks like this:
FitnessNew/ build/ src/
slideDateTimePicker/ build/ src/
So the FitnessNew and slideDateTimePicker directories should be on the same level.
yes, like this right
Yes, like that. Does that work? On Feb 28, 2015 5:17 AM, "scariest" [email protected] wrote:
yes, like this right
[image: capture] https://cloud.githubusercontent.com/assets/11229782/6425778/bc0237f0-bf32-11e4-9d6b-8245a5f03f51.JPG
— Reply to this email directly or view it on GitHub https://github.com/jjobes/SlideDateTimePicker/issues/8#issuecomment-76520264 .
Nope, still getting the same error
The FitnessNew Project root directory should like this
- app
- slideDateTimePicker
- settings.gradle
The settings.gradle file's content like this
include ':app', ':slideDateTimePicker'
If you add a module in your project, you should edit settings.gradle and insert the module name.
thankS dear squirrel20 i did what you just said and now everything is oK ;)
It's a pity you (seemingly?) weren't able to get it pushed to gradle in the meantime. Busy life huh?
I cannot get this to work in my project. Updating settings.gradle
like suggested above will result in making Android Studio recognize this as a subproject but I can't use compile project(':SlideDateTimePicker')
to actually compile the project.
Error: Configuration with name 'default' not found.
I'm not using this.
@Harti you should reference slideDateTimePicker folder that is inside SlideDateTimePicker.
What do you mean reference slideDateTimerPicker inside SlideDateTimePicker? I am having the exact same issue as @Harti.