Skip to content

Building in Eclipse

kcochibili edited this page Jun 10, 2015 · 5 revisions

Eclipse with Gradle support

This project depends on the Android V4 Support Library for using Fragment, so you have to import it into your workspace. Copy the jar file from /Android_SDK/extras/android/compitibility/v4/ to the libs folder of the project.

Next, you'll need to install the Eclipse Integration Gradle Plugin. and restart Eclipse.

You can then import the Emojicon project by doing File/Import/Gradle/Gradle Project and the clicking the Browse button to point to the Emojicon directory. Click on Build Model, and then you can put a checkbox next to "example" and finish the import. This will show up as "example" in your Eclipse workspace. You can rename it by right clicking on it and choosing Refactor/Rename.

If it complains that "/gen already exists but is not a source folder", right click on the gen folder and then BuildPath/SourceFolder.

Eclipse without Gradle support

  1. Import the Emojicon project by doing Import/General/Existing Projects into Workspace click Browse, point to directory library/src/main and import the project. Do the same to import the example project at directory example/src/main.

  2. Remove android-support-v4.jar from your projects libs folder because it already exists in the Emojicon project you will be importing in the next step. (This is to avoid compilation errors)

  3. Right click on your project

  4. Properties > Android > Library: Add > Emojicon

  5. Click Apply, then Okay