I have problem with importing this library into eclipse. Things I did:
- run gradlew.bat (inside project) that downloaded and installed it
- run CMD
- set my SDK with command "set ANDROID_HOME=C:\dev\android-sdk-windows"
- run command gradlew build
- after successful build image I tried to import project into my eclipse but it's incomplete (without any classes)
It's first time I'm using gradlew, could you tell me what I'm doing wrong?
There is a simplest and quick way to import a Gradle project into Eclipse. Just download the Gradle plugin for Eclipse from here.
https://marketplace.eclipse.org/content/gradle-integration-eclipse-0
And then from import select Gradle and your project would be imported. Then you have to click on Build Model to run it.
EDIT Above link for Gradle plugin is no more valid. You can use the following link.
https://marketplace.eclipse.org/content/buildship-gradle-integration
This library is built with Android Studio or Intellj. These steps with Gradle are referred to Android Studio or IntellJ.
I don't know this lib, but if you are using Eclipse, you should do:
(*) Eclipse uses
src
andres
as source folders.Android Studio instead uses
src/main/java
,src/main/res
andsrc/main/aidl
as source folders.Open file
build.gradle
and add this line on top:In project directory invoke command
Open project in Eclipse (import) like normal eclipse project
More info: Eclipse Plugin
Alternatively use dedicated Eclipse plugin Gradle Integration for Eclipse 3.4.0.RELEASE