안드로이드 gradle build 에러좀 봐주세요..

조회수 2624회

FCM을 쓰기위해 gradle build를 싱크하는 과정에서 에러가 막 발생하는데 하나 해결하면 또 새로운게 뜨고..

복잡하군요 아주

우선 에러메시지는 다음과 같습니다.

Error:A problem occurred configuring project ':app'.

Could not find support-annotations.jar (com.android.support:support-annotations:24.0.0).

Searched in the following locations:

https://jcenter.bintray.com/com/android/support/support-annotations/24.0.0/support-annotations-24.0.0.jar

빌드 그래들은 다음과 같습니다.

apply plugin: 'com.android.application'

android {
    compileSdkVersion 24
    buildToolsVersion "24.0.1"

    repositories {
        mavenCentral()
    }

    defaultConfig {
        applicationId "com.example.ileem.tiiu"
        minSdkVersion 16
        targetSdkVersion 24
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    compile fileTree(include: ['*.jar'], dir: 'libs')
    testCompile 'junit:junit:4.12'
    compile 'com.android.support:appcompat-v7:24.0.0-alpha2'
    compile 'com.android.support:design:24.0.0-alpha2'
    compile 'com.facebook.android:facebook-android-sdk:4.0.0'
    compile 'com.google.android.gms:play-services:9.0.0'
    compile 'com.google.maps.android:android-maps-utils:0.4'
    compile 'com.google.firebase:firebase-messaging:9.6.1'
    compile 'com.squareup.okhttp3:okhttp:3.2.0'

    compile files('libs/gson-2.2.4.jar')
    compile files('libs/jsoup-1.10.1.jar')

}
apply plugin: 'com.google.gms.google-services'

아래부분이 빨간줄로 그어지는데, 이곳이 에러입니다. 갑자기 support-annotations.jar를 찾을 수 없다고 하는것 같은데.... 어떻게 해줘야할까요

compile 'com.google.android.gms:play-services:9.0.0'

  • (•́ ✖ •̀)
    알 수 없는 사용자

1 답변

  • 저도 잘은 모르겠으나

    com.android.support:support-annotations:24.0.0

    이거 하나 추가하면 될듯합니다만 일단 저는 저거 없이 아래와같이 했습니다.

    참고하시어 도움이 되길 바랍니다.

    이미지

    • (•́ ✖ •̀)
      알 수 없는 사용자

답변을 하려면 로그인이 필요합니다.

프로그래머스 커뮤니티는 개발자들을 위한 Q&A 서비스입니다. 로그인해야 답변을 작성하실 수 있습니다.

(ಠ_ಠ)
(ಠ‿ಠ)