Error:Cannot locate factory for objects of type DefaultGradleConnector, as ConnectorServiceRegistry

在Android Studio 中安装了插件之后出现了这个问题,问题描述:

Gradle 'MyAndroidDemo' project refresh failed

Error:Cannot locate factory for objects of type DefaultGradleConnector, as ConnectorServiceRegistry has been closed. 
Error:Cannot locate factory for objects of type DefaultGradleConnector, as ConnectorServiceRegistry


解决方案:

Error:Cannot locate factory for objects of type DefaultGradleConnector, as ConnectorServiceRegistry

重新启动Android Studio即可