当我尝试运行该应用程序时,它向我显示了重复的类错误,我尝试将targetSdkVersion和compileSDKVersion更改为27,但它也不起作用,这里是错误消息
Duplicate class android.support.design.widget.CoordinatorLayout found
in modules classes.jar (com.android.support:design:27.0.0) and
classes.jar (com.android.support:support-core-ui:27.1.1)
Duplicate class android.support.design.widget.CoordinatorLayout$Behavior found in modules classes.jar (com.android.support:design:27.0.0) and classes.jar (com.android.support:support-core-ui:27.1.1)
Duplicate class android.support.design.widget.CoordinatorLayout$1 found in modules classes.jar (com.android.support:design:27.0.0) and classes.jar (com.android.support:support-core-ui:27.1.1)
Duplicate class android.support.design.widget.CoordinatorLayout$DefaultBehavior found in modules classes.jar (com.android.support:design:27.0.0) and classes.jar (com.android.support:support-core-ui:27.1.1)
Duplicate class android.support.design.widget.CoordinatorLayout$DispatchChangeEvent found in modules classes.jar (com.android.support:design:27.0.0) and classes.jar (com.android.support:support-core-ui:27.1.1)
Duplicate class android.support.design.widget.CoordinatorLayout$HierarchyChangeListener found in modules classes.jar (com.android.support:design:27.0.0) and classes.jar (com.android.support:support-core-ui:27.1.1)
Duplicate class android.support.design.widget.CoordinatorLayout$LayoutParams found in modules classes.jar (com.android.support:design:27.0.0) and classes.jar (com.android.support:support-core-ui:27.1.1)
Duplicate class android.support.design.widget.CoordinatorLayout$OnPreDrawListener found in modules classes.jar (com.android.support:design:27.0.0) and classes.jar (com.android.support:support-core-ui:27.1.1)
Duplicate class android.support.design.widget.CoordinatorLayout$SavedState found in modules classes.jar (com.android.support:design:27.0.0) and classes.jar (com.android.support:support-core-ui:27.1.1)
Duplicate class android.support.design.widget.CoordinatorLayout$SavedState$1 found in modules classes.jar (com.android.support:design:27.0.0) and classes.jar (com.android.support:support-core-ui:27.1.1)
Duplicate class android.support.design.widget.CoordinatorLayout$ViewElevationComparator found in modules classes.jar (com.android.support:design:27.0.0) and classes.jar (com.android.support:support-core-ui:27.1.1)
Go to the documentation to learn how to Fix dependency resolution errors.