#android #android-studio #android-support-library #androiddesignsupport
#Android #android-studio #android-support-library #поддержка androiddesign
Вопрос:
я использую com.android.support:design:27.0.2
для своего старого проекта. теперь я хочу обновить свой проект. но я не понимаю, что такое support:design
библиотека для androidx? все зависимости обновлены, но запутаны в com.android.support:design:27.0.2
этом.
вот мой файл 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'
}
пожалуйста, объясните, что это за новое обновление?
Ответ №1:
Вместо библиотеки поддержки дизайна вы можете использовать : implementation 'com.google.android.material:material:1.0.0'
Проверьте наличие текущей стабильной версии
Комментарии:
1. Да, вы можете увидеть эквиваленты
androidx
здесь: developer.android.com/jetpack/androidx/migrate /…