【发布时间】:2017-05-09 08:44:15
【问题描述】:
不知道发生了什么,我试图更新我的存储库,但我仍然收到一个错误,所有 android studio 支持库都应该有一个确切的版本!!请建议我该怎么做,这样我的应用程序就不会陷入运行时错误并且不会崩溃!
apply plugin: 'com.android.application'
android {
compileSdkVersion 25
buildToolsVersion "25.0.2"
defaultConfig {
applicationId "info.BBBApp.firebase"
minSdkVersion 19
targetSdkVersion 25
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'
})
compile 'com.android.support:appcompat-v7:25.0.2'
compile 'com.android.support.constraint:constraint-layout:1.0.0-beta4'
// compile 'com.google.firebase:firebase-core:9.4.0'
// compile 'com.google.firebase:firebase-auth:9.4.0'
// compile 'com.google.firebase:firebase-storage:9.4.0'
// compile 'com.google.firebase:firebase-databse:9.4.0'
compile 'com.firebaseui:firebase-ui:0.4.0'
// compile 'com.google.android.gms:play-services-auth:9.4.0'
testCompile 'junit:junit:4.12'
}
apply plugin: 'com.google.gms.google-services'
【问题讨论】:
-
那么你得到的错误究竟是什么?
-
将此行
com.firebaseui:firebase-ui:0.4.0更改为:com.firebaseui:firebase-ui:1.2.0是否有效? -
我在 compile 'com.android.support:appcompat-v7:25.0.2' 下出现红线!!
-
libs里面是什么? -
@alexmamo 我改变了你的建议,但它导致另一个错误,如 com.twitter.sdk.android:twitter:2.3.0 failed to load..
标签: android android-studio firebase firebase-authentication