Expand Minimize Picture-in-picture Power Device Status Voice Recognition Skip Back Skip Forward Minus Plus Play Search
Internet Explorer alert
This browser is not recommended for use with smartdevicelink.com, and may not function properly. Upgrade to a different browser to guarantee support of all features.
close alert
To Top Created with Sketch. To Top
To Bottom Created with Sketch. To Bottom
JavaSE Guides
Installation

Installation

In order to build your app on a SmartDeviceLink (SDL) Core, the SDL software development kit (SDK) must be installed in your app. The following steps will guide you through adding the SDL SDK to your workspace and configuring the environment.

Note

The SDL SDK is currently supported on Java 7 (1.7) and above.

Install SDL SDK

Each SDL JavaSE library release is published to MavenCentral. By adding a few lines in their app's gradle script, developers can compile with the latest SDL JavaSE release.

To gain access to the MavenCentral repository, make sure your app's build.gradle file includes the following:

repositories {
    google()
    mavenCentral()
}

Gradle Build

To compile with a release of SDL JavaSE, include the following line in your app's build.gradle file,

dependencies {
    implementation 'com.smartdevicelink:sdl_java_se:{version}'
}

and replace {version} with the desired release version in format of x.x.x. The list of releases can be found here.

Examples

To compile release 5.7.0, use the following line:

dependencies {
    implementation 'com.smartdevicelink:sdl_java_se:5.7.0'
}

To compile the latest minor release of major version 5, use:

dependencies {
    implementation 'com.smartdevicelink:sdl_java_se:5.+'
}

To Find more information on installation, read our README.

View on GitHub.com
Next Section