gpt4 book ai didi

java - 当我将 recyclerview 版本从 23.0.1 更改为 23.2.1 时,gradle 文件错误

转载 作者:行者123 更新时间:2023-12-02 11:54:04 24 4
gpt4 key购买 nike

apply plugin: 'com.android.application'

android {
compileSdkVersion 23
buildToolsVersion "25.0.0"
defaultConfig {
applicationId "adhoc.mlm_app"
minSdkVersion 15
targetSdkVersion 23
versionCode 4
versionName "1.0.4"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
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.constraint:constraint-layout:1.0.2'//getting error

compile 'com.android.support:appcompat-v7:23.2.1'
compile 'com.android.support:design:23.0.1'
compile 'com.squareup.picasso:picasso:2.5.2'
compile 'com.android.support:cardview-v7:23.2.1'
compile 'com.android.support:recyclerview-v7:23.2.1'
testCompile 'junit:junit:4.12'
}

All com.android.support libraries must use the exact same version specification (mixing versions can lead to runtime crashes). Found versions 23.2.1, 23.0.1. Examples include com.android.support:animated-vector-drawable:23.2.1 and com.android.support:design:23.0.1 )

最佳答案

使用

 compile `'com.android.support:design:23.2.1'` 

而不是

编译'com.android.support:design:23.0.1'

关于java - 当我将 recyclerview 版本从 23.0.1 更改为 23.2.1 时,gradle 文件错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47712199/

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