File->Settings->Build, Execution, Deployment->Gradle->取消选中 Offline work 按钮 转载于:https://www.cnblogs.com/the-wang/p/8908600.html