0
firebaseリアルタイムデータベースでこのlink.を使用して作業します。第六工程の後に、それは解決できませんでした:com.google.firebase:firebase-core:9.6.1
が
エラーを解決できませんでした提供します。
build.gradleアプリケーションモジュール:
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "24.0.0"
defaultConfig {
applicationId "gc.imageuploader"
minSdkVersion 14
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.4.0'
compile 'com.google.firebase:firebase-database:9.6.1'
}
apply plugin: 'com.google.gms.google-services'
build.gradleプロジェクトモジュール:
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.1.2'
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()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
だから、どのように私はこの問題を解決することはできますか?私は何をすべきか?この問題についてどう思いますか?
Android SDKマネージャーに最新のGoogleリポジトリがあることを確認してください –
どのようにすればよいですか?私は初心者です。 –
ここで承認された回答からGoogle PlayサービスとGoogleレポジトリを更新する方法を確認してください。http://stackoverflow.com/questions/37310188/failed-to-resolve-com-google-firebasefirebase-core9-0-0?rq=1 –