Is there any way to integrate Eclipse with Gradle in Android project?

Solution 1:

In order to be able to build an Android gradle project with Eclipse I followed these instructions:

  1. Install these Eclipse plugins:

    • Gradle IDE (3.4.0)
    • Android Development Tools (22.3.0)
  2. If you have an old-style android project layout, change your build.gradle to configure source directories as explained in the Android Gradle User Guide.

  3. If you have a gradle android project layout, create two symbolic links into the root of your project.

    ln -s src/main/res res
    ln -s src/main/AndroidManifest.xml AndroidManifest.xml

I hope it helps!

Solution 2:

Read Is it possible to use the Gradle build system for Android with Eclipse?

try Nodeclipse/Enide Gradle for Eclipse (marketplace)

Some screenshots for Gradle for Eclipse:

Solution 3:

I use neon eclipse for android developer with gradle integration. Also, I use gradle plugin (com.github.ginvavilon:android-eclipse) for generating .project and .classpath for new structure of android project (src/main/java; src/main/res ...). Flavors and build types are supported. And use that project as gradle-project