Comments (14)
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.
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.
I think this is the cause to the issue:
It says :
" 'dependencies' cannot be applied to '(groovy.lang.Closure)' "
from recyclerviewfastscroller.
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.
@danoz73 I successfully imported library as project to android studio. This is no problem with the project. Issue can be closed.
from recyclerviewfastscroller.
@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.
@AndroidDeveloperLB I updated previous comment, please read it :)
from recyclerviewfastscroller.
@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.
@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.
ok, I've deleted both and now it works. What do those lines do anyway?
from recyclerviewfastscroller.
@AndroidDeveloperLB something related with uploading on maven. I don't know exactly what but it doesn't affect on library using.
from recyclerviewfastscroller.
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.
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.
I don't understand, but thank you for fixing this.
from recyclerviewfastscroller.
Related Issues (20)
- doesn't work with SwipeRefreshLayout HOT 3
- Not working with view pager fragments HOT 3
- ArrayIndexOutOfBoundsException HOT 1
- java.lang.NoClassDefFoundError: Failed resolution of: Lxyz/danoz/recyclerviewfastscroller/R$styleable;
- it does not support auto hide when user stop scrolling? HOT 2
- Incorrect values for VerticalScrollBoundsProvider (?)
- Scroll direction is not natural HOT 1
- Scroll bar appears at the bottom when number of items less
- Error inflating sectionindicator HOT 1
- Stops when no search results exists
- Crash when adapter is null
- Hide ScrollBar when Items are smaller then screen size. HOT 2
- viewpager viewpageradapter use crash HOT 2
- Can not drag๏ผ
- Custom Handle drawable
- Help with usage
- Crash on recycleview HOT 2
- Change 'compile' to 'implementation' in README.md
- Recyclerview setOnScrollListener deprecated
- com.example.icallerscreenj, PID: 29583 java.lang.NullPointerException: Attempt to invoke virtual method 'androidx.recyclerview.widget.RecyclerView$LayoutManager androidx.recyclerview.widget.RecyclerView.getLayoutManager()' on a null object reference at xyz.danoz.recyclerviewfastscroller.calculation.progress.VerticalLinearLayoutManagerScrollProgressCalculator.calculateScrollProgress
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from recyclerviewfastscroller.