将ShowcaseView API添加到渐变时出现问题



当我试图将ShowcaseView API添加到gradle时,我出现了一个错误-

所有com.android.support库都必须使用完全相同的版本规范(混合版本可能导致运行时崩溃)。建立版本28.0.0和23.1.1。示例包括com.android.support:动画矢量可绘制:28.0.0和com.android.support:support-v4:27.1less。。。(Ctrl+F1)检查info:有一些库的组合,或者工具和库,不兼容或可能导致错误的。一个这样的不相容性正在使用以下版本的Android支持库进行编译不是最新版本(尤其是低于您的版本targetSdkVersion)。问题id:GradleCompatible

依赖:图像

"implementation.com.android.support:appcompat-v7:28.0.0'">

这是我的成绩单。

apply plugin: 'com.android.application'
android {
compileSdkVersion 28
defaultConfig {
applicationId "com.snailp4el.android.tatoeba"
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'
}
}
dataBinding {
enabled = true
}
}
dependencies {
implementation 'com.android.support:support-annotations:28.0.0'
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.android.support:design:28.0.0'
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'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
implementation 'org.jsoup:jsoup:1.11.3'
implementation 'org.jsoup:jsoup:1.11.3'
implementation 'com.ichi2.anki:api:1.1.0alpha6'
implementation 'com.github.amlcurran.showcaseview:library:5.4.3'
}

你能解释一下我做错了什么吗?以及如何将ShowcaseView api添加到我的项目中。提前感谢。

我几分钟前就遇到了同样的问题。showcase视图库似乎不支持"implementation.com.android.support:appcompat-v7:28.0.0'">

我的解决方案是将我的"compileSdkVersion 28"降级为"compileSdkVersion 26"。您可能还需要将所有实现更改为26而不是28。

implementation 'com.android.support:support-annotations:28.0.0' <== CHANGE TO 26.0.0
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:28.0.0' <== CHANGE TO 26.0.0
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation 'com.android.support:design:28.0.0' <== CHANGE TO 26.0.0

我相信这将是暂时的,直到库更新到支持上面的sdkversion28。干杯!

最新更新