Gradle项目同步失败。基本功能

问题描述:

我刚刚更新Android工作室后更新我打开我以前的项目,并找到这个错误enter image description here 我该如何解决这个问题? ................................................. .......................... 这是我的摇篮文件Gradle项目同步失败。基本功能

apply plugin: 'com.android.application' 

android { 
    compileSdkVersion 25 
    buildToolsVersion "25.0.1" 
    defaultConfig { 
     applicationId "abtech.waiteriano.com.waitrer" 
     minSdkVersion 18 
     targetSdkVersion 25 
     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']) 
    androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { 
     exclude group: 'com.android.support', module: 'support-annotations' 
    }) 
    compile project(':jtds-1.3.1') 
    compile 'com.android.support:support-v4:25.2.0' 
    compile 'com.android.support:appcompat-v7:25.2.0' 
    compile 'com.android.support:design:25.2.0' 
    compile 'com.roughike:bottom-bar:1.3.9' 
    compile 'com.android.support:recyclerview-v7:25.2.0' 
    compile 'com.android.support.constraint:constraint-layout:1.0.0-alpha8' 
    testCompile 'junit:junit:4.12' 
} 
+0

可能重复的[android studio 0.4.2:Gradle项目同步失败错误](http://*.com/questions/21066598/android-studio-0-4-2-gradle-project-sync-failed-错误) –

有些包的需要下载, 待办事项检查您的互联网连接并重新运行该项目。

如果您有问题,请继续发送您的gradle文件。

+0

尝试使用终端清理您的项目, –

+0

使用命令./gradlew clean –

+0

您的意思是使用CMD? –

由于网络超时,Android Studio无法更新下载所需的依赖关系。所以点击消息窗口中显示的链接。工作室下载&同步项目。

+0

我已经使用点击这个链接并没有发生任何事情@Jayaprakash –

+0

否则,转到文件 - 使缓存/重新启动Studio无效。开始工作室检查互联网连接。如果重启后你将遇到同样的问题,最好简单地卸载Android Studio并重新安装。 – Jayaprakash

+0

如果我重新安装android studio我会花很多时间我需要快速解决方案为:D –