Prepare Your Device to Use the Android Client Software Libraries
A device must be configured correctly and meet the minimum hardware requirements to successfully install the Android client software libraries.
- Make sure the hardware prerequisites are met before you install the Android client libraries on your device. For a list of supported platforms, see Oracle IoT Cloud Service Client Software Certified System Configurations.
- Verify device registration:
- Open the Oracle Fusion Cloud IoT Intelligent Applications management console.
- Click the Menu () icon.
- Click Devices and then Management.
- Select a device in the device list, or use the Property and Value fields to search for a device.
- Confirm Registered is displayed in the State column.
- Confirm the location of your Android software development kit (SDK). Typically, it is located at this path:
C:\users\user-name\AppData\Local\Android\sdk
. - Set the path for the Android SDK:
- Browse to
C:\Users\user-name\Documents\iotcs\csl\<version>\android\samples
. - Open the
local.properties
file in a source code editor. - Enter the Android SDK path as the
sdk.dir
property value. - Enter the user name used to access the Android device as the
user-name
property value. - Save and close the
local.properties
file.
- Browse to
- Browse to
C:\Users\user-name\Documents\iotcs\csl\<version>\android\lib
and make sure thedevice-library.aar
andenterprise-library.aar
files are in the folder. - Set the
device-library.aar
path in thebuild.gradle
file:- Browse to
C:\Users\user-name\Documents\iotcs\csl\android\samples\dcd\app
. - Open the
build.gradle
file in a source code editor. - Confirm the path for the
flatDir
property value is correct. - Save and close the
build.gradle
file.
- Browse to
- Set the Android SDK version in the build files:
- Browse to
C:\Users\user-name\AppData\Local\Android\sdk\build-tools
. - Record the Android SDK version.
- Browse to
C:\Users\user-name\Documents\iotcs\csl\<version>\android\samples
. - Open the
local.properties
file in a source code editor. - Enter the installed Android SDK version as the
androidBuildToolsVersion
property value. - Save and close the
local.properties
file. - Browse to
C:\Users\user-name\Documents\iotcs\csl\<version>\android\samples\dcd\app
. - Open the
build.gradle
file in a source code editor. - Enter the installed Android SDK version as the
buildToolsVersion
property value. - Save and close the
build.gradle
file.
- Browse to