Step 4.2: Create the Android application

  1. Open Android Studio.
  2. Open the Import Digi Sample wizard by doing one of the following:
    • Select Import a Digi Android code sample on the Welcome screen.

    • Select File > New > Import Digi Sample from the menu.

  3. On the Browse Samples page of the wizard, select the Getting Started Sample Application under Digi samples. Then click Next.

  4. In the Project location field of the Sample Setup page of the wizard, specify the path where you want to download the sources of the application.

  5. Click Finish to create the sample application. A new Android Studio window opens with the Getting Started Sample Application project.
  6. Android Studio will likely recommend that you update the Android Gradle plugin when you import an example. Development on the Android Gradle plugin is ongoing, but Digi samples are configured with a specific Gradle version.

    Click Update and Android Studio performs the update.

Note Android Studio for 32bits version 2.2 or newer has a known issue when trying to build with Gradle. To fix the issue, change the JDK for your project. See known Android Studio issues for instructions.

Note The following Gradle synchronization error is due to a known Android Studio issue: