月度归档:2017年01月

破解updating the version of com.google.android.gms to 9.0.0.

使用Firebase遇到的问题:

Error:Execution failed for task ':stocks:processDebugGoogleServices'.

Please fix the version conflict either by updating the version of the google-services plugin 

(information about the latest version is available at https://bintray.com/android/android-tools/com.google.gms.google-services/) 

or updating the version of com.google.android.gms to 9.0.0.

只需要把”apply plugin”放到build.gradle文件的最后…

apply plugin: 'com.android.application'

android {
// ...
}

dependencies {
// ...
compile 'com.google.firebase:firebase-core:10.0.1'

// Getting a "Could not find" error? Make sure you have
// the latest Google Repository in the Android SDK manager
}

// ADD THIS AT THE BOTTOM (最后面...)
apply plugin: 'com.google.gms.google-services'

哎…***************(略)…here