我试图将'Firebase Auth'和'FirebaseUI auth'添加到我的项目中。一旦我将依赖项添加到build.gradle中,当我删除firebaseUi Auth时,程序将无法解析符号R(生成:“ Android资源链接失败”)。
这些是build.gradle文件中的依赖项。
dependencies {
implementation 'com.android.support:design:24.2.0'
implementation 'com.android.support:appcompat-v7:24.2.0'
implementation 'com.google.firebase:firebase-config:16.1.3'
implementation 'com.google.firebase:firebase-core:16.0.6'
implementation 'com.google.firebase:firebase-database:16.0.5'
implementation 'com.google.firebase:firebase-auth:16.1.0'
implementation 'com.firebaseui:firebase-ui-auth:4.3.1'
implementation 'com.github.bumptech.glide:glide:3.7.0'
}
apply plugin: 'com.google.gms.google-services'
com.google.gms.googleservices.GoogleServicesPlugin.config.disableVersionCheck = true
Build-Log说:
\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values-v28\values-v28.xml:7: error: resource android:attr/dialogCornerRadius not found.
\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values-v28\values-v28.xml:11: error: resource android:attr/dialogCornerRadius not found.
\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:4407: error: resource android:attr/fontVariationSettings not found.
app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:4408: error: resource android:attr/ttcIndex not found.
错误:链接引用失败。