AS莫名报错 Error:Could not download junit.jar (junit:junit:4.12): No cached version available

在网上百度的方法,亲测可用,特来记录

找到File - Other settings - Default settings

Build Tools - Gradle

去掉"offline work"选项勾

点击 "Ok"

去到 "Build" - "clean Project"

 

 

参考网址:https://blog.csdn.net/qq_33210042/article/details/78191231

posted @ 2018-09-12 10:39  mi_lu  阅读(1927)  评论(0编辑  收藏  举报