Initial SDK Setup with Eclipse

Step 1

In your command line, clone the Braze Android Github Repository.

1
$ git clone git@github.com:Appboy/appboy-android-sdk.git

Step 2

Import the Braze project into your local workspace

In Eclipse:

  • Navigate to File > Import.

    File Import

  • Select Android > Existing Android Code into Workspace.

    Android Import

  • Click “Browse.”

    Browse

  • Check the Braze UI project folder as well as “copy project into workspace” and click “Finish.”

    Select Android UI Project

Step 3

Reference Braze in your own project. In Eclipse:

  • Right click your project and select “Properties.”

    Click Properties

  • Under “Android,” click “Add…” in the Library section and add android-sdk-ui as a library to your app.

    Braze Add

Step 4

Resolve dependency errors and correct build target.

At this time, you may see errors coming up with the Braze code, that is because its dependencies are not populated and the build target is possibly incorrect:

  • Right click the Braze UI project and select Properties->Android to make sure build target is set to Braze’s current build tools version.

    Build Target

  • Right click the Braze UI project and select Properties->Java Build Path->Add JARs… and add ‘android-support-v4.jar’ from the main application as a library.

    Support

Step 5

Add final pieces.

  • For SDK version 1.10.0 or higher, you will need to add <service android:name="com.appboy.services.AppboyDataSyncService" /> to your AndroidManifest.xml, as Eclipse does not support manifest merging.

  • For SDK version 1.7.0 or higher, you will need to copy “assets/fontawesome-webfont.ttf” from our library project to your application. Eclipse does not automatically include the assets folder from libraries.

WAS THIS PAGE HELPFUL?
New Stuff!