2016-12-13 5 views
4

이 주제에 대한 많은 게시물을 읽었지만 아무도 도움을받지 못했습니다. 내가 안드로이드 Studio를 사용하여 다음과 같은있어이 guidecom.google.gms : google-services : 3.0.0

이 프로젝트 Gradle을 수 있습니다 :

buildscript { 
    repositories { 
     jcenter() 
    } 
    dependencies { 
     classpath 'com.android.tools.build:gradle:2.2.3' 
     classpath 'com.google.gms:google-services:3.0.0' 
     // NOTE: Do not place your application dependencies here; they belong 
     // in the individual module build.gradle files 
    } 
} 

allprojects { 
    repositories { 
     jcenter() 
    } 
} 

이 응용 프로그램의 Gradle을입니다 : 내가 추가 한 곳

다음
apply plugin: 'com.android.application' 

    android { 
     compileSdkVersion 25 
     buildToolsVersion "25.0.1" 
     defaultConfig { 
      applicationId "com.xyv.appname" 
      minSdkVersion 15 
      targetSdkVersion 25 
      versionCode 1 
      versionName "1.0" 
      testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" 
     } 
     buildTypes { 
      release { 
       minifyEnabled false 
       proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 
      } 
     } 
    } 

    dependencies { 
     compile fileTree(dir: 'libs', include: ['*.jar']) 
     androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { 
      exclude group: 'com.android.support', module: 'support-annotations' 
     }) 
     compile 'com.android.support:appcompat-v7:25.0.1' 
     compile 'com.android.support:design:25.0.1' 
     testCompile 'junit:junit:4.12' 
     compile 'com.google.firebase:firebase-core:10.0.1'   
    } 
    apply plugin: 'com.google.gms.google-services' 

당신이 볼 수는 google- 내 앱의 services.json :

enter image description here

이 내 SDK 도구는 다음과 같습니다

enter image description here

아무도 이해 못하는 경우 오류가 무엇입니까?

당신은 또한 앱 build.gradle에

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

을 추가해야 할 수 있습니다 사전

답변

0

독립 실행 형 SDK 관리자를 열고 기타 섹션에서 "Google Play 서비스"가 업데이트됨을 확인할 수 있습니다.

enter image description here

+1

도와 주셔서 감사합니다.하지만 Google Play 서비스 버전 38이 이미 설치되어 있습니다. – MDP

0

난 그냥 안드로이드 스튜디오를 업데이트 한 이유 2 2.3 베타 안드로이드 스튜디오를 업데이트하여 내 문제를 해결하고 모두가 내 SDK 도구의 인쇄 화면을 추가