-
Create a new application with Android Studio. For instructions, see the Android Developers Guide.
-
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.
-
Once the project is created, configure your project to use the Digi API extensions instead of the standard Android SDK.
You can do this in one of two ways:
-
Use the Project Structure dialog:
-
Click File > Project Structure. The Project Structure dialog appears.
-
Select Modules from the list on the left to display module configuration options.
-
Select the app module in the Modules list.
-
In the Compile SDK Version choose Digi International:Digi SDK Add-on for Embedded:30:
-
Click OK to close the dialog and apply the changes.
-
-
Or edit the
app/build.gradle
file and setDigi International:Digi SDK Add-on for Embedded:30
ascompileSdkVersion
value:
-
-
Configure your project to use the Gradle plugin version 7.0.3. To do so, follow these steps:
-
Right-click your Android project and select Open Module Settings. The Project Structure dialog appears.
-
In the left list, select Project to display the Gradle project configuration.
-
Set the Android Gradle Plugin Version combo box value to 7.0.3.
-
Click OK to close the dialog and apply the changes.
-
After configuring the project to use Digi SDK Add-on, the following error is displayed: Gradle project sync failed. Basic functionality (e.g. editing, debugging) will not work properly. When this occurs, Gradle cannot locate the SDK platform and Digi API extensions are not properly detected. To fix this:
|