Android Studio 看不到插件生成的类和资源,我该如何解决?

问题描述 投票:0回答:1

Android studio(2022.3.1 Patch 2)在此文件夹中没有看到插件生成的文件:

  • 生成/res/processDebugGoogleServices
  • 生成/源/导航参数

但是 Gradle 工作正常,应用程序工作完美,我只是在 IDE 中有错误指示,没有任何建议。生成的 BuildConfig 和 ViewBinding 有效。已尝试使缓存无效或删除文件夹 .gradle 和 .idea。我的会议是:

根build.gradle.kts:

plugins {
    id("com.android.application") version "8.1.2" apply false
    id("com.google.gms.google-services") version "4.4.0" apply false
    id("androidx.navigation.safeargs.kotlin") version "2.7.4" apply false
}

模块build.gradle.kts:

compileSdk = 34

compileOptions {
    sourceCompatibility = JavaVersion.VERSION_11
    targetCompatibility = JavaVersion.VERSION_11
}

kotlinOptions {
    jvmTarget = JvmTarget.JVM_11.target
}

buildFeatures {
    buildConfig = true
    viewBinding = true
}
android android-studio android-gradle-plugin android-safe-args
1个回答
0
投票

这是 Android Studio Hedgehog 错误, 使用 Android Studio Iguana 修复

© www.soinside.com 2019 - 2024. All rights reserved.