Skip to content
This repository was archived by the owner on Apr 26, 2023. It is now read-only.
This repository was archived by the owner on Apr 26, 2023. It is now read-only.

Enabled loading library in Eclipse #51

@devilmac

Description

@devilmac

Hi timroes,

I was able to add your library in my Eclipse project by doing the following:

  • in build.gradle file inside the library folder (not the root folder project), I added this line: apply plugin: 'eclipse';
  • I had to add the ANDROID_HOME environment variable pointing to the root of Android SDK (it needs to reboot the system before it works; if this wouldn't work, add to the root folder project a local.properties file containing this line: sdk.dir=pathToAndroidSDK);
  • in a terminal, I have executed this command from the root folder of the project:
    gradlew eclipse.

When the process is finished, inside the library folder there were these three files:

  • .classpath file;
  • .project file;
  • .settings folder.

In other words, the command above has "translated" the gradle project into an Eclipse project.

Done that, I have imported the project into my Eclipse workspace, made changes to get a valid project without any error, set it to be an Android library and added it to my application as usual in Eclipse.

I hope this will help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions