This library and samples basically support Android Studio and Gradle.
Because they have strong power to handle dependencies and ability to configure flexibly,
and this library and sample app depend on them.
However, some of you might still want to build or debug the project on Eclipse. If you'd like to do that, please try the following instructions.
Please note that with these instructions you could bulid project on Eclipse, but test codes, build types ('debug' or 'release') and product flavors are still not supported.
Please check here to see if your enviroment satisfies the prerequisites for building the app.
Get the source code of the library and example app, by cloning git repository or downloading archives.
If you use git, execute the following command in your workspace directory.
$ git clone https://github.com/ksoichiro/Android-ObservableScrollView.git
If you are using Windows, try it on GitBash or Cygwin or something that supports git.
If you haven't define the environment variable ANDROID_HOME
yet, define it to indicate Android SDK root directory.
Before trying to import projects to Eclipse, execute these command:
$ ./gradlew clean generateVersionInfoDebug generateEclipseDependencies
This will generate dependency codes from AAR files using Gradle wrapper and some metadata files (.classpath
, .project
, project.properties
).
- Launch Eclipse.
- Select
File
>Import
. - Select
General
>Existing Projects into Workspace
and clickNext
.- Warning: DO NOT
Android
>Existing Android Code into Workspace
.
- Warning: DO NOT
- Click
Browse
and select project root directory (Android-ObservableScrollView
). - Check
Search for nested projects
. - Select all projects and click next.
- Some warning messages will be generated, but ignore them and wait until build finishes.
- Confirm your device is connected.
- Right click
observablescrollview-samples
and selectRun As
>Android Application
.
That's all!