Gradle 依赖项是:
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.appcompat:appcompat:1.0.2'
implementation 'com.google.android.material:material:1.1.0-alpha05'
implementation 'androidx.constraintlayout:constraintlayout:2.0.0-alpha3'
implementation 'androidx.vectordrawable:vectordrawable:1.1.0-alpha01'
implementation 'androidx.recyclerview:recyclerview:1.0.2'
implementation 'androidx.cardview:cardview:1.0.0'
implementation 'com.hendraanggrian.material:collapsingtoolbarlayout-subtitle:1.0.0'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test:runner:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
每次清理和重建后,Gradle 项目同步都失败。
最佳答案
View -> 工具窗口 -> Gradle -> 切换离线模式图标
Click here to see the Toggle Offline Mode Icon
关于android - 无法确定 androidx.appcompat :appcompat:1. 0.2 的工件:没有可用于离线模式的缓存版本,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/55391746/