마스터Q&A 안드로이드는 안드로이드 개발자들의 질문과 답변을 위한 지식 커뮤니티 사이트입니다. 안드로이드펍에서 운영하고 있습니다. [사용법, 운영진]

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

0 추천

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'

 

똑돌이 (530 포인트) 님이 2016년 12월 28일 질문

1개의 답변

+1 추천
 
채택된 답변
지금 최신 버전이 25.1.0이에요.

스튜디오 툴바 버튼 중에 sdk 같은 거 업데이트 화면 호출하는 거 있는데, 거기서 build tool 같은 거 최신으로 업데이트 하시고, 24.0.0 으로 된 것들을 최신버전으로 바꿔주면 잘 될 겁니다.
쎄미 (162,410 포인트) 님이 2016년 12월 28일 답변
똑돌이님이 2016년 12월 28일 채택됨
답변 감사합니다..  업뎃 귀찮아서 미루고만 있었는데 업뎃문제일줄이야 꿈에도 몰랐네요
...