Skip to content

Solution: add databinding-compiler to androidTest configuration #1

Description

@jonas-m-

Since version 3.1 of Android Gradle plugin, you no longer have to include databinding-compiler as annotation processor, as the plugin does it for you.

Except it only does that for your main source configuration, not androidTest. For UI/instrumentation tests you still need to include the compiler yourself:

In your library module's build.gradle file:

apply plugin: 'kotlin-kapt'

dependencies {
    ...
    kaptAndroidTest 'androidx.databinding:databinding-compiler:3.3.2'
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions