# Gradle.app dependencies ###### tags: `Android Gradle Dependencies` # Import Libraries ## Set Variable Versions Before **dependencies** in the bottom of Build.Gradle, you can add variables by using **def** to state it is a variable. ```kotlin=== def lifeCycleExtensionVersion = '1.1.1' def supportVersion = '28.0.0' def retrofitVersion = '2.3.0' def daggerVersion = '2.13' def glideVersion = '4.8.0' def mockitoVersion = '2.11.0' dependencies { } ``` ## Library Import Use **Double Quote (" ")** to enable the use of version variables, if **Single Quote (' ')** is used you will have to write version directly in it. **Example:** ```kotlin= androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0' implementation "com.squareup.retrofit2:retrofit:$retrofitVersion" ``` ## kapt vs AnnotationProcessor To use kapt plugin must be input in build.gradle(app), at the top input the following plugin: ```kotlin= apply plugin: 'kotlin-kapt' ``` For those gradle that need to use kapt, change annotationProcessor to kapt. **Note:** AnnotationProcessor is used for java ones.