【发布时间】:2020-01-17 06:51:03
【问题描述】:
当我在构建 gradle(模块应用程序)中实现 'androidx.appcompat:design:1.1.0' 代码时
它说ERROR: Failed to resolve: androidx.appcompat:design:1.1.0
我已尝试更改实现 'androidx.appcompat:appcompat:1.1.0'
在 appscompact 版本中它再次显示错误
apply plugin: 'com.android.application'
android {
compileSdkVersion 29
buildToolsVersion "29.0.2"
defaultConfig {
applicationId "com.example.bottomnavigation"
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.1.0'
implementation 'androidx.appcompat:design:1.1.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test:runner:1.2.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
}
错误:无法解决:androidx.appcompat:design:1.1.0 在项目结构对话框中显示 受影响的模块:app
【问题讨论】:
-
androidx.appcompat:design:1.1.0 不存在
标签: java android android-support-library androidx material-components-android