Kotlin在Android Studio上运行失败提示“Gradle同步失败:连接超时:连接请参阅IDE日志以获取更多详细信息(帮助|显示日志)”

Kotlin在Android Studio上运行并告诉我:“Gradle同步失败:连接超时:连接请参阅IDE日志以获取更多详细信息(帮助|显示日志)”,但是如果我只是新的android项目,而不是配置kotlin配置。

我的操作是这样的:

1.Install kotlin plugin . 2.configure kotlin in project . 3.convert java file to kotlin file 4.Run "app" failed 

我的IDE版本:

![IDE版本] [1]

我的配置

 apply plugin: 'com.android.application' //kotlin config apply plugin: 'kotlin-android' android { compileSdkVersion 26 buildToolsVersion "26.0.0" defaultConfig { applicationId "com.huawei.myapplication" minSdkVersion 15 targetSdkVersion 26 versionCode 1 versionName "1.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } } dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) compile 'com.android.support:appcompat-v7:26.+' compile 'com.android.support.constraint:constraint-layout:1.0.2' compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" } repositories { mavenCentral() }