SlideDateTimePicker icon indicating copy to clipboard operation
SlideDateTimePicker copied to clipboard

Library Setup

Open scariest opened this issue 10 years ago • 14 comments

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

scariest avatar Feb 27 '15 13:02 scariest

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

jjobes avatar Feb 27 '15 17:02 jjobes

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.

jjobes avatar Feb 27 '15 20:02 jjobes

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

scariest avatar Feb 27 '15 23:02 scariest

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.

jjobes avatar Feb 28 '15 00:02 jjobes

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

scariest avatar Feb 28 '15 00:02 scariest

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.

jjobes avatar Feb 28 '15 01:02 jjobes

yes, like this right

capture

scariest avatar Feb 28 '15 10:02 scariest

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 .

jjobes avatar Feb 28 '15 12:02 jjobes

Nope, still getting the same error

scariest avatar Feb 28 '15 13:02 scariest

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.

squirrel20 avatar May 09 '15 12:05 squirrel20

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

mderis avatar Jun 04 '15 18:06 mderis

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 avatar Sep 24 '15 11:09 Harti

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

yakubbaev avatar Sep 29 '15 14:09 yakubbaev

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

heath3n avatar Sep 21 '16 02:09 heath3n