Android 虽然我有所有资源文件,但资源链接失败 |科特林

Android Resource Linking Failed although i have all the resource files | Kotlin

Error Screenshot

每当我 运行 模拟器中的应用程序时,它都会显示上述错误。但是我有所有的资源文件。

App Directory

屏幕截图中显示的依赖项。 gradle 的其他部分是:

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

android {
    compileSdkVersion 29
    buildToolsVersion "29.0.3"

    defaultConfig {
        applicationId "com.example.modshabuisness"
        minSdkVersion 16
        targetSdkVersion 29
        versionCode 1
        versionName "1.0"
        multiDexEnabled true

        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
    }

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

}

您是否清理并重建了项目?请在你的 xml 文件中检查 xml 选择器 <?xml version="1.0" encoding="utf-8"?> 多个,如果通过删除其他选择器保持它的单一性。