Error Program type already present: CoordinatorLayout$Behavior when building with Dagger 2
Hello everyone! I'm new to Kotlin and trying to build a project using Dagger 2. The project uses Android Support Library, and I recently added CoordinatorLayout to implement BottomSheetBehavior.
When building, I get the error:
```
Error : Program type already present: android.support.design.widget.CoordinatorLayout$Behavior
```
Here's a snippet of my `build.gradle` (Module: app):
```kotlin
dependencies {
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support:design:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation 'com.google.dagger:dagger:2.21'
kapt 'com.google.dagger:dagger-compiler:2.21'
// other dependencies...
}
```
And in the code I'm using:
```kotlin
cla
No answers yet.
Log in to leave an answer