Giter Site home page Giter Site logo

Comments (14)

KennyGoers avatar KennyGoers commented on August 16, 2024

Go to the graddle.settings file and add the defs or comment out the publish bits from the build file. poke around and you should find it.

from recyclerviewfastscroller.

AndroidDeveloperLB avatar AndroidDeveloperLB commented on August 16, 2024

which file exactly, and what exactly to put there ? Only similar file is "settings.gradle" , and its content is just that:

include ':recyclerviewfastscroller'
include 'Application'

from recyclerviewfastscroller.

AndroidDeveloperLB avatar AndroidDeveloperLB commented on August 16, 2024

I think this is the cause to the issue:
untitled20150321212643
It says :
" 'dependencies' cannot be applied to '(groovy.lang.Closure)' "

from recyclerviewfastscroller.

IlyaEremin avatar IlyaEremin commented on August 16, 2024

You need only recyclerviewfastscroller folder to import library into your project.
After that put these constants:

ext {
    compileSdkVersion = 21
    buildToolsVersion = '21.1.1'
    targetSdkVersion = 21
    minSdkVersion = 14
    versionCode = 0
    versionName = "0.1.0"
}

to your build.gradle root file
and remove

apply from: 'gradle-maven-push.gradle'
afterEvaluate {
    androidJavadocs.classpath += project.android.libraryVariants.toList().first().javaCompile.classpath
}

from build.gradle in recyclerviewfastscroller folder

then add include ':recyclerviewfastscroller' to your settings.gradle root file. And then add compile project(':recyclerviewfastscroller') to your project build.gradle file. Read more about importing projects here: http://stackoverflow.com/questions/16718026/how-to-build-an-android-library-with-android-studio-and-gradle

from recyclerviewfastscroller.

IlyaEremin avatar IlyaEremin commented on August 16, 2024

@danoz73 I successfully imported library as project to android studio. This is no problem with the project. Issue can be closed.

from recyclerviewfastscroller.

AndroidDeveloperLB avatar AndroidDeveloperLB commented on August 16, 2024

@IlyaEremin I don't understand. How did you import the project (library&sample) without any needed step? Why do I keep getting this error?
I just try to import it like any other Github project :
VCS-> Checkout from version control -> Git -> "https://github.com/danoz73/RecyclerViewFastScroller.git" ->Clone .

from recyclerviewfastscroller.

IlyaEremin avatar IlyaEremin commented on August 16, 2024

@AndroidDeveloperLB I updated previous comment, please read it :)

from recyclerviewfastscroller.

IlyaEremin avatar IlyaEremin commented on August 16, 2024

@AndroidDeveloperLB sorry, I think that you want to just import library itself without sample. You can compile sample just by deleting

apply from: 'gradle-maven-push.gradle'
afterEvaluate {
    androidJavadocs.classpath += project.android.libraryVariants.toList().first().javaCompile.classpath
}

from recyclerviewfastscroller/build.gradle

from recyclerviewfastscroller.

AndroidDeveloperLB avatar AndroidDeveloperLB commented on August 16, 2024

@IlyaEremin I don't understand what you mean. Do you suggest creating a new project, downloading only the library part, and import it as a module?
If so, this is a lot more steps than the way I know of, and it also won't import the sample to test it.

EDIT: ok, I will try.

EDIT:
but the content has an extra line:

apply from: 'gradle-maven-push.gradle'

afterEvaluate {
    androidJavadocs.classpath += project.android.libraryVariants.toList().first().javaCompile.classpath
}

Should I delete all of those?

from recyclerviewfastscroller.

AndroidDeveloperLB avatar AndroidDeveloperLB commented on August 16, 2024

ok, I've deleted both and now it works. What do those lines do anyway?

from recyclerviewfastscroller.

IlyaEremin avatar IlyaEremin commented on August 16, 2024

@AndroidDeveloperLB something related with uploading on maven. I don't know exactly what but it doesn't affect on library using.

from recyclerviewfastscroller.

AndroidDeveloperLB avatar AndroidDeveloperLB commented on August 16, 2024

Thank you for helping. I think you should check it out, as I never had this issue on other repositories (thought I do have other issues from time to time).

from recyclerviewfastscroller.

danoz73 avatar danoz73 commented on August 16, 2024

Thanks for identifying this issue.

Those lines were, by default, including the configuration of the maven upload task that I have for my own convenience. I have now made it a requirement to specifically specify a gradle property (recyclerviewfastscroller.uploadScript) in order to actually use the uploadArchives task.

Thanks to @timroes for a nice solution to this issue!

from recyclerviewfastscroller.

AndroidDeveloperLB avatar AndroidDeveloperLB commented on August 16, 2024

I don't understand, but thank you for fixing this.

from recyclerviewfastscroller.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.