이 주제에 대한 많은 게시물을 읽었지만 아무도 도움을받지 못했습니다. 내가 안드로이드 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 :
이 내 SDK 도구는 다음과 같습니다
아무도 이해 못하는 경우 오류가 무엇입니까?
당신은 또한 앱 build.gradle에compile 'com.google.android.gms:play-services:9.6.1'
을 추가해야 할 수 있습니다 사전
잘 파괴되고, 보시다시피 Google Play 서비스 버전 38 – MDP