我在下一行中收到错误实施'com.android.support:appcompat-v7:28.0.0'
并且我在上面的错误描述中得到了这个。所有com.android.support库都必须使用完全相同的版本规范(混合版本可能导致运行时崩溃)。找到版本28.0.0、27.1.0、26.1.0。)
我两次卸载了Android Studio,然后再次安装了它。但这没有帮助。
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation 'com.google.firebase:firebase-core:16.0.8'
implementation 'com.google.firebase:firebase-auth:16.2.0'
implementation 'com.google.firebase:firebase-auth:16.2.0'
implementation 'com.google.android.gms:play-services-auth:16.0.1'
implementation 'com.squareup.picasso:picasso:2.71828'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
}
错误是由不同的jar引起的,只需使用我的两种方法,错误就可以解决
修订毕加索
implementation('com.squareup.picasso:picasso:2.71828'){
exclude group: 'com.android.support'
}
将以下项目添加到build.gradle
implementation ('com.android.support:exifinterface:28.0.0')