### Add the API plugin

Although DataStore presents a distinct API, its cloud synchronization functionality relies on the underlying [API category](/lib/graphqlapi/getting-started). Therefore, you will still be required to incorporate the API plugin when working with DataStore.

Make sure that you declare a dependency on the API plugin in your app-level `build.gradle`:

```groovy
dependencies {
    // Add this line.
    implementation 'com.amplifyframework:aws-api:ANDROID_V1_VERSION'
}
```

Next, add the plugin in your Amplify initialization code alongside with the previously added `AWSDataStorePlugin`.

<BlockSwitcher>
<Block name="Java">

```java
Amplify.addPlugin(new AWSDataStorePlugin());
// Add this line.
Amplify.addPlugin(new AWSApiPlugin());
Amplify.configure(getApplicationContext());
```

</Block>
<Block name="Kotlin">

```kotlin
Amplify.addPlugin(AWSDataStorePlugin())
// Add this line.
Amplify.addPlugin(AWSApiPlugin())
Amplify.configure(applicationContext)
```

</Block>
</BlockSwitcher>

