Vault Causing Runtime Crash on RequestSync

Hey Folks,

I’m integrating the Contentful Android SDK into our Kotlin Android app. The app keeps crashing when I try to sync our Space using Vault. I’ve created a class for the space I want to retrieve entries from, however, it seems the Vault is unable to find the generated class for that space.

Here’s two small code snippets of what the implementation looks like.

@Space(value = "xxxxxxxxx", models = [Article::class], locales = ["en-US"])
class OurSpace {}

val client = CDAClient.builder()
                    .setEnvironment("-------")
                    .setSpace("xxxxxxxxx")
                    .setToken("xxxxxxxxx")
                    .build()
                
val config: SyncConfig = SyncConfig.builder()
    .setClient(client)
    .build()

Vault.with(context, OurSpace::class.java).requestSync(config)
val vault = Vault.with(context, OurSpace::class.java)

I realized that I needed to replace annotationProcessor with kapt. Working now