jjobes / SlideDateTimePicker

A combined DatePicker and TimePicker in a DialogFragment for Android
Apache License 2.0
836 stars 235 forks source link

Library Setup #8

Open scariest opened 9 years ago

scariest commented 9 years ago

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

jjobes commented 9 years ago

Is the library project on the same directory level as your main project?

jjobes commented 9 years ago

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.

scariest commented 9 years ago

thanks for the quick reply, yes it is, okay, thanks, will be looking forward to it :)

jjobes commented 9 years ago

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.

scariest commented 9 years ago

capture i have attached the a screen shot to this post, it contains the structure

jjobes commented 9 years ago

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.

scariest commented 9 years ago

yes, like this right

capture

jjobes commented 9 years ago

Yes, like that. Does that work? On Feb 28, 2015 5:17 AM, "scariest" notifications@github.com 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 .

scariest commented 9 years ago

Nope, still getting the same error

squirrel20 commented 9 years ago

The FitnessNew Project root directory should like this

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.

mderis commented 9 years ago

thankS dear squirrel20 i did what you just said and now everything is oK ;)

Harti commented 9 years ago

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.

yakubbaev commented 9 years ago

@Harti you should reference slideDateTimePicker folder that is inside SlideDateTimePicker.

heath3n commented 8 years ago

What do you mean reference slideDateTimerPicker inside SlideDateTimePicker? I am having the exact same issue as @Harti.