【问题标题】:Fixation Of Version Android StudioAndroid Studio 版本修复
【发布时间】:2018-12-30 03:12:55
【问题描述】:

我正在使用 Firebase 数据库开发 Android 应用程序,但在将数据库与 firebase 链接后,我发现有关版本冲突的问题。 我使用的是 3.1.3 版。 我进行了很多搜索,发现了与此相关的不同解决方案,但没有解决我的问题。 以下是 Stackoverflow 上可用的先前问题

android {
compileSdkVersion 27
defaultConfig {
    applicationId "com.example.usmanali.homeinventoryapp"
    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'
    }
}

Link 1 Gradle 文件中的 Dependanies 部分

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:27.1.1'
implementation 'com.android.support.constraint:constraint-layout:1.1.2'
implementation 'com.google.firebase:firebase-core:11.8.0'
implementation 'com.google.firebase:firebase-messaging:11.8.0'
implementation 'com.google.firebase:firebase-auth:11.6.0'
implementation 'com.google.firebase:firebase-database:11.8.0'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'

}

【问题讨论】:

  • 添加你的 gradle 文件和你得到的错误
  • 我刚刚添加了gradle文件
  • 我已经更改了它,但现在在“implementation 'com.android.support:appcompat-v7:27.1.1”'这一行显示错误
  • 错误表示代码下有红线

标签: android firebase android-studio build.gradle


【解决方案1】:

改变这个:

implementation 'com.google.firebase:firebase-auth:11.6.0'

进入这个:

implementation 'com.google.firebase:firebase-auth:11.8.0'

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2017-04-12
    • 2014-07-22
    • 1970-01-01
    • 1970-01-01
    • 2014-03-23
    • 1970-01-01
    • 2017-07-26
    • 2018-02-09
    相关资源
    最近更新 更多