Setting-Up Android SDK

Once downloaded, you must set-up the environment to start using the Android SDK.

Android SDK uses external API libraries (as explained in ‘External Dependencies’ section) to build applications. You must include these libraries to your application project in either of the following environments:

  • Eclipse
  • Android Studio

Setting-up Application Project in Eclipse/Android Studio

  1. Create an application project in Eclipse/Android Studio.
  2. Download Android SDK from https://developer.precisely.com/download?AndroidSdk.zip.
  3. Add jar (external dependency) to Android project. To do this, select the folder structure from 'Android' to 'Project' as shown below:

  4. Right click on 'app'-> 'libs' folder and copy and paste your JAR file as shown below:

    Note: In the dialog-box, you can rename the jar file.
  5. Right click on the project and select 'Open Module Settings':

  6. Click on 'Dependencies' tab and click the '+' icon on the top right corner on the screen as shown below:

  7. Select the 'File Dependency' option:

  8. Select your JAR file and press 'OK':

  9. Verify the jar in the 'build.gradle' of the app as shown in the highlighted text below:

  10. Get your credentials and use the same to get access to Android SDK. Refer 'Obtaining Credentials (API Key and Secret)' section for more details on how to get credentials.