2016-06-10 7 views
0

Firebase를 사용하여 첫 번째 응용 프로그램을 만들었습니다. Firebase : 오류 해결 실패 : (26, 13) com.google.firebase : firebase-core : 9.0.2

는 내가 모든 단계를 완료 한 후에 나는 다음과 같은 오류가 점점 오전 add firebase in my app.

에 단계별로 따라 갔다.

enter image description here

build.gradle 파일 :

dependencies { 
    compile fileTree(include: ['*.jar'], dir: 'libs') 
    testCompile 'junit:junit:4.12' 
    compile 'com.android.support:appcompat-v7:23.4.0' 
    compile 'com.google.firebase:firebase-core:9.0.2' 
    compile 'com.google.firebase:firebase-messaging:9.0.2' 
} 


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

또한 프로젝트 수준 build.gradle에 다음 줄을 추가했습니다.

classpath 'com.google.gms:google-services:3.0.0' 

이 문제가 무엇이며, 나는 발견 할 수 없었다. 어떤 도움이 필요합니까?

+0

스튜디오 버전? – Shubhank

+0

스튜디오 버전 ** ** 2.1.2 ** @Shubhank –

+0

gradle 버전? –

답변

7

당신은 엑스트라에서 에서 Andriod-SDK구글 Repositorty를 업데이트해야합니다. 그런 다음 프로젝트를 동기화하면 프로젝트가 성공적으로 동기화됩니다.

업데이트 된 버전은 업데이트 된 Google Repo입니다.

+0

감사합니다. 당신도 옳습니다. –

+0

@Deepak Goyal 님이 이것을 사용하고 토큰을 컴파일하는 서비스를 호출하지 못했습니다 'com.google.firebase : firebase-messaging : 9.0.0' compile 'com.google.android.gms : play-services-auth : 9.0.0 ' – Erum

관련 문제