Error : Program type already present: android.support.design.widget.CoordinatorLayout$Behavior

前端 未结 22 1585
不知归路
不知归路 2020-11-27 14:04

I am getting the following error while building the project. haven\'t used CoordinatorLayout in this project. just added as a dependency in build.gradle :

I am usin

22条回答
  •  北海茫月
    2020-11-27 14:19

    As android latest update doesn't support 'compile' keyword use 'implementation' in place inside your module build.gradle file.

    And check thoroughly in build.gradle for dependancy with + sign like this.

    implementation 'com.android.support:support-v4:28.+'
    

    If there are any dependencies like this, just update them with a specific version. After that:

    1. Sync gradle.
    2. Clean your project.
    3. Rebuild the project.

提交回复
热议问题