Could not determine artifacts for XXX: No cached version availa

今天删掉某个第三方引用以后,突然发现项目报错了

Could not determine artifacts for androidx.recyclerview:recyclerview:1.0.0: No cached version availa

查找以后发现是关闭了:toggle Offline work

在Android studio 最新版本中 这个的开关不在File | Settings | Build, Execution, Deployment | Build Tools中的gradle中了,而是在图下所示位置。


解决方法:开启toggle Offline work就好了

以上

你可能感兴趣的:(Could not determine artifacts for XXX: No cached version availa)