gpt4 book ai didi

Android Studio 收到支持警告 :appcompat-v7:28. 0.0

转载 作者:行者123 更新时间:2023-11-29 00:55:31 32 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, 26.1.0. Examples include com.android.support:animated-vector-drawable:28.0.0 and com.android.support:support-media-compat:26.1.0 less... (Ctrl+F1) 
Inspection info: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).

这是我的gradle文件

android {
compileSdkVersion 28
defaultConfig {
applicationId "com.pristology.mysociety"
minSdkVersion 15
targetSdkVersion 28
versionCode 3
versionName "1.0.3"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
}
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:28.0.0'

implementation 'com.android.support:design: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.android.support:cardview-v7:28.0.0'

更新 android studio 3.3.2 时,我在应用级 gradle 文件中收到警告

最佳答案

All com.android.support libraries must use the exact same version specification

发生这种情况是因为您的某些库使用旧版本 support-media-compat

只需在依赖项中显式添加库的版本

implementation 'com.android.support:support-media-compat:28.0.0'

关于Android Studio 收到支持警告 :appcompat-v7:28. 0.0,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55155333/

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