的build.gradle的問題(應用程序):爲什麼連接到火力讓我的應用程序在Android工作室
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:24.2.1'
compile 'com.android.support:design:24.2.1'
compile 'com.android.support:support-v4:24.2.1'
compile 'com.google.android.gms:play-services:7.5.0'
compile 'com.google.firebase:firebase-core:9.8.0'
testCompile 'junit:junit:4.12'
}
apply plugin: 'com.google.gms.google-services'
build.grade(項目):
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.0'
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
}
}
谷歌谷歌服務及庫是所有這些都是最新的SDK。
我收到以下錯誤:
Error:(42, 1) A problem occurred evaluating project ':app'.
> Failed to apply plugin [id 'com.google.gms.google-services']
> Version: 7.5.0 is lower than the minimum version (9.0.0) required for google-services plugin.
我想從我的應用程序連接到火力地堡和我有google-services.json
文件app
文件夾內。
如何解決連接到Firebase的問題。上的build.gradle文件
感謝您的詳細解釋。 – Si8