com.android.support:design:27.0.2 最后一次更新是什么?
com.android.support:design:27.0.2 what is the last update?
我正在为我的旧项目使用 com.android.support:design:27.0.2
。现在我想更新我的项目。但我不明白什么是 androidx 的 support:design
库?所有依赖项都已更新,但在 com.android.support:design:27.0.2
this.
中感到困惑
这是我的 build.gradle 文件
apply plugin: 'com.android.application'
android {
compileSdkVersion 30
buildToolsVersion "30.0.1"
packagingOptions {
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/INDEX.LIST'
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
defaultConfig {
applicationId "com.test.myapplication"
minSdkVersion 16
targetSdkVersion 30
versionCode 1
versionName "1.0"
multiDexEnabled true
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.appcompat:appcompat:1.2.0'
// Glide library
implementation 'com.github.bumptech.glide:glide:4.6.1'
annotationProcessor 'com.github.bumptech.glide:compiler:4.6.1'
// Volley library
implementation 'com.android.volley:volley:1.1.0'
// Recyclerview Library
implementation 'androidx.recyclerview:recyclerview:1.1.0'
implementation 'com.android.support:design:27.0.2'
implementation 'com.android.support.constraint:constraint-layout:2.0.1'
testImplementation 'junit:junit:4.13'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
implementation 'androidx.cardview:cardview:1.0.0'
implementation 'com.github.ybq:Android-SpinKit:1.4.0'
implementation 'com.github.hajiyevelnur92:intentanimation:1.0'
implementation 'com.sdsmdg.tastytoast:tastytoast:0.1.1'
}
请解释一下新更新是什么?
而不是设计支持库,
您可以使用 :
implementation 'com.google.android.material:material:1.0.0'
检查当前的稳定版本
我正在为我的旧项目使用 com.android.support:design:27.0.2
。现在我想更新我的项目。但我不明白什么是 androidx 的 support:design
库?所有依赖项都已更新,但在 com.android.support:design:27.0.2
this.
这是我的 build.gradle 文件
apply plugin: 'com.android.application'
android {
compileSdkVersion 30
buildToolsVersion "30.0.1"
packagingOptions {
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/INDEX.LIST'
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
defaultConfig {
applicationId "com.test.myapplication"
minSdkVersion 16
targetSdkVersion 30
versionCode 1
versionName "1.0"
multiDexEnabled true
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.appcompat:appcompat:1.2.0'
// Glide library
implementation 'com.github.bumptech.glide:glide:4.6.1'
annotationProcessor 'com.github.bumptech.glide:compiler:4.6.1'
// Volley library
implementation 'com.android.volley:volley:1.1.0'
// Recyclerview Library
implementation 'androidx.recyclerview:recyclerview:1.1.0'
implementation 'com.android.support:design:27.0.2'
implementation 'com.android.support.constraint:constraint-layout:2.0.1'
testImplementation 'junit:junit:4.13'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
implementation 'androidx.cardview:cardview:1.0.0'
implementation 'com.github.ybq:Android-SpinKit:1.4.0'
implementation 'com.github.hajiyevelnur92:intentanimation:1.0'
implementation 'com.sdsmdg.tastytoast:tastytoast:0.1.1'
}
请解释一下新更新是什么?
而不是设计支持库,
您可以使用 :
implementation 'com.google.android.material:material:1.0.0'
检查当前的稳定版本