2017-03-09 1 views
0

업데이트 후 Android 스튜디오를 업데이트했습니다. 이전 프로젝트를 열고이 오류를 찾으 셨습니다. enter image description here 어떻게 해결할 수 있습니까? ................................................. .......................... 이 내 Gradle을 패키지 중 일부는 필요Gradle Project 동기화가 실패했습니다. 기본 기능

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://stackoverflow.com/questions/21066598/android-studio-0-4-2-gradle-project-sync-failed- 오류) –

답변

1

이 마 다운로드 할 파일입니다 인터넷 연결을 확인하고 프로젝트를 다시 실행하십시오.

그래도 문제가 있다면 gradle 파일을 보내십시오.

+0

터미널을 사용하여 프로젝트를 청소 해보십시오. –

+0

명령을 사용하십시오 ./gradlew clean –

+0

CMD를 사용 하시겠습니까? –

1

네트워크 시간 초과로 인해 Android 스튜디오에서 다운로드 요구 종속성을 업데이트하지 못했습니다. 메시지 창에 표시된 링크를 클릭하십시오. Studio 다운로드 & 프로젝트 동기화.

+0

이미이 링크를 클릭하면 아무 것도 발생하지 않습니다. @Jayaprakash –

+0

그렇지 않으면 , 파일 이동 - 캐시 무효화/Studio 재시작. 스튜디오 검사 인터넷 연결을 시작하는 동안. 다시 시작한 후에도 동일한 문제가 발생하면 Android Studio를 제거하고 다시 설치하는 것이 좋습니다. – Jayaprakash

+0

안드로이드 스튜디오를 다시 설치하면 다음과 같은 빠른 솔루션이 필요합니다. D –

관련 문제