e:无法解析以下类的超类型。请确保您在类路径中具有必需的依赖项:

时间:2019-10-05 17:07:10

标签: android android-studio kotlin

以下类的

超类型无法解析。请确保您在类路径中具有必需的依赖项:com.google.firebase.auth.internal.internalAuthProvider类,未解析的超类型 com.google.firebase.internal.internalTokenProvider

代码如下:

apply plugin: 'com.android.application'

apply plugin: 'kotlin-android'

apply plugin: 'kotlin-android-extensions'

android {

    compileSdkVersion 29
    buildToolsVersion "29.0.2"
    defaultConfig {
        applicationId "com.example.firebaseuiexample"
        minSdkVersion 29
        targetSdkVersion 29
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
    }
    buildTypes {

        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {


    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
    implementation 'androidx.appcompat:appcompat:1.1.0'
    implementation 'androidx.core:core-ktx:1.1.0'
    implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'androidx.test:runner:1.2.0'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
    implementation 'com.google.firebase:firebase-core:17.2.0'
    implementation 'com.firebaseui:firebase-ui-auth:4.3.2'

}
apply plugin: 'com.google.gms.google-services'

1 个答案:

答案 0 :(得分:-1)

实现'com.google.firebase:firebase-database:16.0.4' 实施'com.google.firebase:firebase-auth:16.0.5'

更改为这些实现。