1. Create a new application with Android Studio. For instructions, see the Android Developers Guide.

  2. Ensure that the Digi API extensions are installed in your Android SDK. To learn how to install them, see the instructions in Step 4.1: Install the software.

  3. Configure your project to use the Digi API extensions instead of the standard Android SDK. You can do this in one of two ways:

    • During the project creation, in the second window, select API 28: Digi SDK Add-on for Embedded in the Minimum API level combo box: image

    • Or, if the project is already created, edit the app/build.gradle file and set Digi International:Digi SDK Add-on for Embedded:28 as compileSdkVersion value: image

  4. Configure your project to use the Gradle plugin version 3.4.2. To do so, follow these steps:

    1. Right-click your Android project and select Open Module Settings. The Project Structure dialog appears.

    2. In the left list, select Project to display the Gradle project configuration.

    3. Set the Android Gradle Plugin Version combo box value to 3.4.2. image

    4. Click OK to close the dialog and apply the changes.