根据文档添加com.android.support:design'com.google.android.material:material-rc01'
后,工作室未能检测到依赖项。然后我将依赖版本降级为
implementation 'com.google.android.material:material:1.1.0-alpha09'
它有效。但是为什么会出现这个问题呢?有什么解释吗?
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation"org.jetbrains.kotlin:kotlin-stdlib-
jdk7:$kotlin_version"
implementation 'androidx.appcompat:appcompat:1.0.2'
implementation 'com.google.android.material:material-rc01'
implementation 'androidx.core:core-ktx:1.0.2'
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'
}
错误:无法解决:com.google.android.material:material-rc01:受影响的模块:app