Program type already present: android.support.design.widget.CoordinatorLayout$1
Posted liyanyan665
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Program type already present: android.support.design.widget.CoordinatorLayout$1相关的知识,希望对你有一定的参考价值。
需要将所有support包中的design模块移除
implementation(‘com.android.support:appcompat-v7:27.1.0‘,
exclude group: ‘com.android.support‘, module: ‘design‘
)
implementation(‘com.android.support:recyclerview-v7:27.1.0‘,
exclude group: ‘com.android.support‘, module: ‘design‘
)
implementation(‘com.android.support:cardview-v7:27.1.0‘,
exclude group: ‘com.android.support‘, module: ‘design‘
)
implementation(‘com.android.support:customtabs:27.1.0‘,
exclude group: ‘com.android.support‘, module: ‘design‘
)
统一design包的版本,与以上support包版本一致
implementation ‘com.android.support:design:27.1.0‘
接着Sync → Clean → Build apk 即可。
解决依赖主要有两种方式
---------------------
以上是关于Program type already present: android.support.design.widget.CoordinatorLayout$1的主要内容,如果未能解决你的问题,请参考以下文章
Android Program type already present问题解决
Android Program type already present问题解决
Error:Program type already present: android.arch.lifecycle.LiveData
Error: Program type already present: okhttp3.Authenticator$1
Program type already present: android.support.design.widget.CoordinatorLayout$1