Expand **Gradle Scripts**, open **build.gradle (Module :app)**. You will already have configured Amplify by following the steps in the Project Setup walkthrough.

Add Analytics by adding these libraries into the dependencies block:

```groovy
dependencies {
    // Add these lines in `dependencies`
    implementation 'com.amplifyframework:aws-analytics-pinpoint:ANDROID_V1_VERSION'
    implementation 'com.amplifyframework:aws-auth-cognito:ANDROID_V1_VERSION'
}
```

Click **Sync Now**.
