Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Configuring Eclipse

elsuggo edited this page · 5 revisions

The use of Eclipse is not supported anymore. It will fail without the libraries org.spongycastle.* and adding those libraries will break the resolution of R.* Please use Android Studio for development or develop on the filesystem and use gradle to build the project according to BUILDING.md

  1. Install Eclipse.
  2. Follow the Android instructions on installing the Android SDK.
  3. Follow the Android instructions on installing the Android ADT plugin for Eclipse.
  4. RedPhone has a project dependency on ActionBarSherlock. Download ActionBarSherlock version 4.2.0, unpack it in your eclipse workspace, and add it as an existing Android project in Eclipse.
  5. Clone the RedPhone repository into your Eclipse workspace, and add it as an existing Android project in Eclipse.
  6. With the RedPhone project open in Eclipse, from the menu bar select Project -> Properties.
  7. In the resulting dialog, select "Android" from the menu bar on the left.
  8. In the "Library" section of that pane, click the "Add" button, and select the ActionBarSherlock project.
  9. From the menu bar on the left of the larger properties dialog, select "Java Build Path."
  10. Select the "Libraries" tab in that pane.
  11. Using the "Add Jars" button, make sure that "android-support-v4.jar", "protobuf-java-2.4.1.jar", "thoughtcrimegson-2.1.jar", and libphonenumber-5.0v1.5.jar are added from the "libs" directory in the RedPhone project.
  12. From the menu bar on the left of the larger properties dialog, select "Android," and ensure that the "Project Build Target" is at least "Android 4.0"
  13. From the menu bar on the left of the larger properties dialog, select "Java Compiler," and ensure that "Compiler compliance level" is set to 1.6. You may need to repeat this step for the ActionBarSherlock project as well.

You should now have a cleanly building RedPhone project in Eclipse! Make sure to check out the RedPhone Style Guidelines before getting started.

Something went wrong with that request. Please try again.