I'm not sure what this error means.
我的依赖文件是
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.android.support:multidex:1.0.0'
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:25.3.1'
compile 'com.google.firebase:firebase-auth:10.2.6'
compile 'com.android.support:design:25.3.1'
compile 'com.weiwangcn.betterspinner:library:1.1.0'
compile 'com.google.firebase:firebase-database:10.2.6'
compile 'com.google.firebase:firebase-storage:10.2.6'
testCompile 'junit:junit:4.12'
compile 'com.android.support:recyclerview-v7:25.2.0'
compile 'com.android.support:cardview-v7:25.2.0'
compile 'com.nostra13.universalimageloader:universal-image-loader:1.9.4'
compile 'com.google.code.gson:gson:2.3.1'
compile 'com.google.firebase:firebase-appindexing:10.0.0'
//adding glid library
compile 'com.github.bumptech.glide:glide:3.7.0'
compile 'com.github.siyamed:android-shape-imageview:0.9.+@aar'
compile('com.crashlytics.sdk.android:crashlytics:2.6.8@aar') {
transitive = true;
}
} 应用插件:“ com.google.gms.google-services”
答案 0 :(得分:0)
在gradle中,您有两个不同版本的Google依赖项,分别为10.0.0和10.2.6
compile 'com.google.firebase:firebase-database:10.2.6'
compile 'com.google.firebase:firebase-storage:10.2.6'
compile 'com.google.firebase:firebase-auth:10.2.6'
compile 'com.google.firebase:firebase-appindexing:10.0.0'
您的Google依赖项必须具有相同的依赖项版本
尝试这样更改:
compile 'com.google.firebase:firebase-database:10.2.6'
compile 'com.google.firebase:firebase-storage:10.2.6'
compile 'com.google.firebase:firebase-auth:10.2.6'
compile 'com.google.firebase:firebase-appindexing:10.2.6'