- Locate the rskit-x.x.jar provided as part of your Android SDK.
- The Android SDK can be downloaded here.
- Put the rskit-x.x.jar in the "libs" folder.
- Your application should have a `libs` folder under the `app` directory. If not, create it (i.e. `app/libs`) and place the JAR there.
- Add the jar file as an external jar to your project.
- Right-click the rskit-x.x.jar and select `Add as library`. Ensure that `compile fileTree(dir: 'libs', include: ['*.jar'])` is in your module build.gradle file under the dependencies tag.
- Rskit has only one dependency which is google play services jar. You should have `compile 'com.google.android.gms:play-services-gcm:8.3.0` inside your build.gradle file if your app
is leveraging google play services. If you don't have one please add.
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.google.android.gms:play-services-gcm:8.3.0'
} - Your complete build.gradle file looks something like this:
apply plugin: 'com.android.application'
android {
compileSdkVersion 21
buildToolsVersion "21.1.2"
defaultConfig {
applicationId "com.retentionscience.helloworld"
minSdkVersion 10
targetSdkVersion 21
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.google.android.gms:play-services-gcm:8.3.0'
compile 'com.android.support:appcompat-v7:21.0.3'
}
- Clean and rebuild your project.
- Your project can now leverage rskit-x.x.jar.
Comments
0 comments
Please sign in to leave a comment.