程序类型已经存在:android.support.design.widget.CoordinatorLayout $Behavior
作者:互联网
在Android Issues中运行应用程序时出现错误:程序类型已存在:android.support.design.widget.CoordinatorLayout $Behavior
这是我的gradle依赖项:
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.android.support:appcompat-v7:26.1.0'
implementation 'com.google.firebase:firebase-auth:15.0.0'
implementation 'com.google.firebase:firebase-storage:15.0.0'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.1'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
compile 'com.github.bumptech.glide:glide:4.7.1'
annotationProcessor 'com.github.bumptech.glide:compiler:4.7.1'
implementation 'com.android.support:support-fragment:26.1.0'
implementation 'com.android.support:design:26.1.0'
}
解决方法:
将firebase-auth更新为15.1.0,并将firebase-storage更新为15.0.2.
现在,它们具有独立的版本号.
还将google-services从.gradle项目更新为:
classpath’com.google.gms:google-services:3.2.1′
查看发行说明here
标签:android-glide,android 来源: https://codeday.me/bug/20191025/1926775.html