2016-06-24 3 views
0

최신 Android Studio 및 도구를 사용하면서 시험 자습서 Admob tutorial을 진행할 것입니다.com.google.android.gms를 해결하지 못했습니다. play-services-ads : 9.0.2

Failed to resolve com.google.android.gms:play-services-ads:9.0.2 
Install repository and sync project 
Open file 
Show in project structure dialog 

가 어떻게이 라이브러리를 해결하기 위해 얻을 것이다 :

는 동기화 후, 오류가 발생했습니다?

+1

그럼 '저장소 및 동기화 설치'를 클릭하셨습니까? – ianhanniballake

+0

예,하지만 아무 것도 발생하지 않았습니다. –

답변

2

오류를 해결하려면 Google Play 서비스와 Google 저장소를 설치해야합니다. Android Studio 2.1의 단계 :

  1. Go to menu Tools -> Android ->SDK Manager.
  2. Click SDK Tools tab
  3. Check Google Play Service and Google Repository.
  4. Then Ok to download them
+0

SDK 관리자 –

+0

을 사용하여 이미 재생 서비스 및 리포지토리를 설치 한 경우 com.google.firebase : firebase-ads : 9.0.2 대신 com.google.android.gms : play-services-ads : 9.0.2? –

+0

firebase-ads를 play-services-ads로 변경했지만 동일한 오류가 발생했습니다. –

관련 문제