当我将firebase版本更改为11.4.2时,我遇到了很多问题,之前它运行良好。但是当我改变它时会引起一些问题,例如:
com.google.firebase:firebase-database:11.4.2
Error:Failed to resolve: com.android.support:support-v4:26.1.0
Error:Failed to resolve: com.android.support:recyclerview-v7:26.1.0
Error:Failed to resolve: android.arch.lifecycle:runtime:1.0.0-beta1
摇篮
apply plugin: 'com.android.application'
android {
compileSdkVersion 27
buildToolsVersion "28.0.2"
defaultConfig {
applicationId "com.andisofttechnology.foodapp"
minSdkVersion 15
targetSdkVersion 27
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'
})
//Add Library
compile 'com.android.support:appcompat-v7:+'
compile 'com.google.firebase:firebase-core:11.0.4'
compile 'com.google.firebase:firebase-database:9.2.1'
compile 'info.hoang8f:fbutton:1.0.5'
compile 'com.rengwuxian.materialedittext:library:2.1.4'
compile 'com.android.support:cardview-v7:+'
compile 'com.android.support:recyclerview-v7:+'
compile 'com.squareup.picasso:picasso:2.5.2'
compile 'com.firebaseui:firebase-ui-database:3.1.0'
compile 'com.android.support:design:25.0.0'
testCompile 'junit:junit:4.12'
}
apply plugin: 'com.google.gms.google-services'
应用
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.2'
classpath 'com.google.gms:google-services:4.0.1'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
/* maven { url "https://maven.google.com" }*/
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
但是当我改变它时会引起一些问题,例如:但是当我改变它时会引起一些问题,例如:但是当我改变它时会引起一些问题,例如:但是当我改变它时会引起一些问题,例如:但是当我改变它时引起了几个问题,例如:但是当我改变它时会引起一些问题,例如:但是当我改变它时会引起一些问题,例如: