Initial SDK Setup with Eclipse
Braze has deprecated support for the Eclipse IDE as Google is sunsetting support for the Eclipse Android Developer Tools Plugin as of 2015. If you need assistance with your Eclipse integration prior to migration please email Support for assistance.
In your command line, clone the Braze Android Github Repository.
1 $ git clone email@example.com:Appboy/appboy-android-sdk.git
Import the Braze project into your local workspace
Navigate to File > Import.
Select Android > Existing Android Code into Workspace.
Check the Braze UI project folder as well as “copy project into workspace” and click “Finish.”
Reference Braze in your own project. In Eclipse:
Right click your project and select “Properties.”
Under “Android,” click “Add…” in the Library section and add android-sdk-ui as a library to your app.
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.
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.
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.