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

이 오류 해석좀 부탁드려요 ㅠㅠ

0 추천

Information:Gradle tasks [:app:generateDebugSources, :app:generateDebugAndroidTestSources, :app:assembleDebug]
Error:A problem occurred configuring project ':app'.
> Could not resolve all dependencies for configuration ':app:_debugCompile'.
   > Could not find any version that matches com.google.android.gms:play-services-gcm:7.5.+.
     Versions that do not match:
         8.3.0
         8.1.0
         7.8.0
     Searched in the following locations:
         https://jcenter.bintray.com/com/google/android/gms/play-services-gcm/maven-metadata.xml
         https://jcenter.bintray.com/com/google/android/gms/play-services-gcm/
         file:/C:/Users/kkk/AppData/Local/Android/sdk1/extras/android/m2repository/com/google/android/gms/play-services-gcm/maven-metadata.xml
         file:/C:/Users/kkk/AppData/Local/Android/sdk1/extras/android/m2repository/com/google/android/gms/play-services-gcm/
         file:/C:/Users/kkk/AppData/Local/Android/sdk1/extras/google/m2repository/com/google/android/gms/play-services-gcm/maven-metadata.xml
     Required by:
         GCMGCM:app:unspecified
Information:BUILD FAILED
Information:Total time: 6.453 secs
Information:1 error
Information:0 warnings
Information:See complete output in console

 

GCM예제보고 만들었는데 저 오류가 떴는데 어떻게 고쳐야될지 모르겠네요...

진조허접 (340 포인트) 님이 2015년 11월 25일 질문

1개의 답변

0 추천

에러 메세지를 보면 아래 라이브러리의 해당 버전이 없다라고 나온 걸 알 수 있습니다.

7.5.x는 없고 8.3.0이나 7.8.0등만 있는거죠.

Could not find any version that matches com.google.android.gms:play-services-gcm:7.5.+.
     Versions that do not match:
         8.3.0
         8.1.0
         7.8.0

 

build.gradle파일을 뒤져보시면 compile 'com.google.android.gms:play-services-gcm:7.5.+' 라고 되어있는 부분이 있을 겁니다.

맨 뒤의 숫자를 저기에 나온 숫자로 바꿔주시면 됩니다. 7.5.x대가 사라졌나보네요.

cc1232 (35,280 포인트) 님이 2015년 11월 26일 답변
감사합니다
다른 오류가 있어서 질문다시 남겼는데 답변해주시면 감사하겠습니다 ㅠㅠ
...