未显示 Android Studio Android 应用运行时配置模块

Android studio Android app runtime configuration module not shown

提问人:Kalindu 提问时间:7/11/2023 更新时间:7/11/2023 访问量:12

问:

我在 Android Studio 的运行时配置中看不到我的 android 应用程序的任何模块。我也不确定这是否是 gradle 错误。这是我的build.gradle文件:

// Top-level build file where you can add configuration options common to all sub- 
projects/modules.
buildscript {
   repositories {
      google()
}
dependencies {
    def nav_version = "2.5.1"
    classpath "androidx.navigation:navigation-safe-args-gradle-plugin:$nav_version"
 }

}


plugins {
   id 'com.android.application' version '7.2.2' apply false
   id 'com.android.library' version '7.2.2' apply false
}

task clean(type: Delete) {
   delete rootProject.buildDir
}

enter image description here

此外,java文件图标也是红色的。我该如何解决这个问题?请帮忙,非常感谢!

java android android-studio android-gradle-插件

评论


答: 暂无答案