nirhart / ParallaxScroll

Parallax ScrollView and ListView for Android
MIT License
848 stars 187 forks source link

Maven Access is no Working #18

Open subinsebastien opened 9 years ago

subinsebastien commented 9 years ago

I tried to include this library from maven as described in the README. Without luck, gradle complains. Do we have this library moved to a new location?

nirhart commented 9 years ago

No, I just uploded it, did you set the maven central in the root build? From android studio you can also search for parallaxscroll in the module dependencies.

subinsebastien commented 9 years ago

Yep, I have added both the lines to me project and module gradle files.

allprojects { repositories { mavenCentral() maven { url 'https://oss.sonatype.org/content/groups/public' } } }

and

compile 'com.github.nirhart:parallaxscroll:1.0'

Question : Why do we need to add a maven url to the main gradle file?

Thanks for the response.

subinsebastien commented 9 years ago

Currently I have added the library project as a module to my project and I add it as a module dependency for app. Although maven is much convenient, I got it working for now.

nirhart commented 9 years ago

You are right, you don't have to add the maven url, just tested it in Android Studio 0.8.9, added the library (Right click on the module -> open module settings -> clicking on the module in the left pan -> clicking on dependencies in the tap -> add new -> search for parallaxscroll) and its working fine for me. can you elaborate about the errors you get ?

snoopaloop commented 8 years ago

@nirhart the only jar files you have there are sources and javadoc. Adding the parallaxscroll-1.0.jar file would resolve it, no?

murleepatle commented 6 years ago

this problem is occurred because dependency use implementation 'com.github.nirhart:parallaxscroll:1.0' not working with compileSdkVersion 27 or new sdk version,

you can salve this to download module from github and impot module in your project and update with ur project sdk version.this is my project update library gradle sdk version