将应用程序与Firebase连接时出现问题

时间:2019-01-30 16:12:08

标签: android

The first picture

second picture

此消息是问题

无法解决:firebase-auth-15.0.0

apply plugin: 'com.android.application'
apply plugin: 'com.google.gms.google-services'

android {
    compileSdkVersion 27
    defaultConfig {
        applicationId "com.example.toshiba.myphone"
        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 {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation 'com.android.support:appcompat-v7:27.1.1'
    implementation 'com.android.support.constraint:constraint-layout:1.1.3'
    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'
    implementation 'com.google.firebase:firebase-auth:16.0.1:15.0.0'
}  

可以帮忙吗?谢谢

2 个答案:

答案 0 :(得分:0)

根据需要更新gradle和firebase版本。

'com.google.firebase:firebase-auth:16.0.1:15.0.0'做到 'com.google.firebase:firebase-auth:16.0.1'或任何与您的gradle兼容的东西。

答案 1 :(得分:0)

关注

apply plugin: 'com.android.application'

android {
    compileSdkVersion 27
    defaultConfig {
        applicationId "com.example.toshiba.myphone"
        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 {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation 'com.android.support:appcompat-v7:27.1.1'
    implementation 'com.android.support.constraint:constraint-layout:1.1.3'
    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'
    implementation 'com.google.firebase:firebase-auth:16.0.1'
}
apply plugin: 'com.google.gms.google-services'