gpt4 book ai didi

android - 错误 : Failed to resolve: androidx. 应用程序兼容性 :design:1. 0.2

转载 作者:行者123 更新时间:2023-11-29 18:25:37 26 4
gpt4 key购买 nike

每当我尝试实现设计依赖时,它都会给出配置错误。错误未解决。这是我的配置

apply plugin: 'com.android.application'

android {
compileSdkVersion 29
buildToolsVersion "29.0.2"
defaultConfig {
applicationId "com.example.loginform"
minSdkVersion 15
targetSdkVersion 29
versionCode 1
versionName "1.0"
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.0.2'
implementation 'androidx.appcompat:design:1.0.2'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test.ext:junit:1.1.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
}

知道可能的原因是什么吗?

最佳答案

使用

implementation 'com.google.android.material:material:1.0.0'

代替

implementation 'androidx.appcompat:design:1.0.2'

关于android - 错误 : Failed to resolve: androidx. 应用程序兼容性 :design:1. 0.2,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59212500/

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