Preparing Your Android Project
The first step towards integration is to prepare your Android Studio and its dependencies.
Android Studio projects contain two levels of build.gradle files: Project level build.gradle file and Module level build.gradle file. We need to make appropriate additions to dependencies at both levels as described below.
Making changes to Project Level build.gradle
build.gradle Please update the following entry to your repositories under allProjects in Project Level build.gradle file.
buildscript{
.
.
.
dependencies {
.
.
classpath 'com.google.gms:google-services:4.4.3'
.
.
}
.
.
}
allprojects {
.
.
repositories {
maven {
url "http://android-lib.kruzr.co:8081/repository/kruzr-android-assistant/"
allowInsecureProtocol true
}
}
.
.
}Making Changes to Module Level build.gradle
build.gradlePlease add the following dependency to your Module Level build.gradle file as shown below
Adding lintOptions and CompileOptions to avoid unexpected issues
lintOptions and CompileOptions to avoid unexpected issuesSpecify lintOptions to prevent extraneous lint errors, specify packagingOptions to prevent unnecessary files from being included in your app (which may otherwise cause problems) and specify compileOptions to use Java 8 to allow your app to be installed on pre-Nougat devices.
Make Changes to Android Manifest
Android Manifest Please make sure that you make the following additions to your Android Manifest
Once you have made changes to these dependencies and set-up the above options, you are ready to set-up Initializations of Kruzr SDK within your app. Please continue to the next section!
Last updated
Was this helpful?