gpt4 book ai didi

android - 在build.gradle文件中混合android依赖版本错误消息,但是找不到不同的依赖

转载 作者:行者123 更新时间:2023-12-03 05:40:27 26 4
gpt4 key购买 nike

我在build.gradle文件中收到以下错误消息:

All com.android.support libraries must use the exact same version specification (mixing versions can lead to runtime crashes). Found versions 28.0.0, 25.2.0. Examples include com.android.support:animated-vector-drawable:28.0.0 and com.android.support:support-media-compat:25.2.0 less... (Ctrl+F1) There are some combinations of libraries, or tools and libraries, that are incompatible, or can lead to bugs. One such incompatibility is compiling with a version of the Android support libraries that is not the latest version (or in particular, a version lower than your targetSdkVersion.)



以下是我的build.gradle文件的当前状态。但是,我看不到任何对上述错误消息中提到的不同版本的依存关系的明确引用。
 apply plugin: 'com.android.application'

android {
compileSdkVersion 28
buildToolsVersion "28.0.3"
defaultConfig {
applicationId "com.parse.ideanetwork"
minSdkVersion 15
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
versionCode 5
vectorDrawables.useSupportLibrary = true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
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:28'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
compile 'com.android.support:design:28.0.0'
compile 'com.google.android.gms:play-services-ads:11.0.0'
compile "com.github.parse-community.Parse-SDK-Android:parse:1.18.5"
}

任何帮助深表感谢。谢谢。

最佳答案

明确声明最旧的版本与最新版本的依赖似乎有效。我认为这不是更好的解决方案(也许根本不是孤注一掷),但它消除了警告。
这就是我正在做的事情,直到现在一切都没有中断。

关于android - 在build.gradle文件中混合android依赖版本错误消息,但是找不到不同的依赖,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53323900/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com