这是错误***所有com.android.support库必须使用完全相同的版本规范(混合版本可能导致运行时崩溃)。找到的版本28.0.0,26.1.0。示例包括com.android.support:animated-vector-drawable:28.0.0和com.android.support:support-media-compat:26.1.0 less ...(Ctrl + F1)有一些库的组合,或者工具和库,不兼容,或可能导致错误。一个这样的不兼容性是使用不是最新版本的Android支持库版本(或者特别是低于targetSdkVersion的版本)进行编译。
这是gradle dependency = qazxsw poi上的错误行
这是我的gradle(app)implementation 'com.android.support:appcompat-v7:28.0.0'
我发现答案谢谢所有助手:-)
解决我刚刚添加这些行gradle依赖块
像这样
>
apply plugin: 'com.android.application'
android {
compileSdkVersion 28
defaultConfig {
applicationId "com.example.thiyo.sdddddddddddddddddddd"
minSdkVersion 19
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
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'
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'
implementation 'com.google.firebase:firebase-core:16.0.1'
}
apply plugin: 'com.google.gms.google-services'
将以下代码添加到gradlebuild项目而不是gradle app,它将解决您的问题,最后添加它。
implementation 'com.android.support:customtabs:28.0.0'
implementation 'com.android.support:support-vector-drawable:28.0.0'
implementation 'com.android.support:support-media-compat:28.0.0'
implementation 'com.android.support:support-v4:28.0.0'
从菜单subprojects {
project.configurations.all {
resolutionStrategy.eachDependency { details ->
if (details.requested.group == 'com.android.support'
&& !details.requested.name.contains('multidex') ) {
details.useVersion "26.1.0"
}
}
}
}
尝试这个
如果这不起作用,删除File-> Invalidate Caches and Restart -> Invalidate and Restart
文件(从项目的根目录),.idea
然后Build -> Clean Project