私は依存関係を追加して、build.gradle
ファイルにmaven {URL "https://maven.google.com"}を追加しました。解決できませんでした:com.google.firebase:firebase-database:11.4.2
がcom.google.firebaseを解決するために失敗しました:firebase-データベース:11.4.2
はcom.google.firebaeを解決するために失敗しました:firebaseコア:11.4.2
としてしかし、まだエラーを取得
このルートでbuild.gradleファイル1
buildscript {
repositories {
jcenter()
mavenLocal()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.2'
classpath 'com.google.gms:google-services:3.1.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
mavenLocal()
maven{ url "https://maven.google.com" }
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
以下がbuild.gですアプリでradleファイル1
apply plugin: 'com.android.application'
repositories {
mavenLocal()
flatDir {
dirs 'libs'
}
}
android {
compileSdkVersion 24
buildToolsVersion "24.0.1"
defaultConfig {
applicationId "com.google.firebase.udacity.friendlychat"
minSdkVersion 16
targetSdkVersion 24
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'),
'proguard-rules.pro'
}
}
packagingOptions {
exclude 'META-INF/LICENSE'
exclude 'META-INF/LICENSE-FIREBASE.txt'
exclude 'META-INF/NOTICE'
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:design:24.2.0'
compile 'com.android.support:appcompat-v7:24.2.0'
compile 'com.google.firebase:firebase-core:11.4.2'
compile 'com.google.firebase:firebase-database:11.4.2'
// Displaying images
compile 'com.github.bumptech.glide:glide:3.6.1'
}
apply plugin: 'com.google.gms.google-services'
任意の助けをここに! https://developers.google.com/android/guides/releasesから少なくとも26、
へ
ありがとうございました。私はそれを行い、compileSdkVersionを26に更新し、他の依存関係も更新しました。 **しかし、問題はまだ続きます**。 – Rajesh
また、サポートライブラリのバージョンをv26以上に更新する必要があるとも言及しておきます。あなたはそれをしましたか? –
私はいろいろ試しました。しかし、まだエラーが表示されます。 – Rajesh