You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Android Studio Narwhal 2025.1.1文件管理器找不到指定包显示选项

在Android Studio Narwhal 2025.1.1中找不到包显示相关选项的解决方案

问题描述

在Android Studio Narwhal | 2025.1.1版本的文件管理器中,无法找到“Compat Middle Packages”“Compat Middle Empty Packages”以及“Flatten packages”这三个控制包显示的选项。

IDE配置信息

Android Studio Narwhal | 2025.1.1
Build #AI-251.25410.109.2511.13665796, built on June 19, 2025
Runtime version: 21.0.6+-13391695-b895.109 aarch64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Toolkit: sun.lwawt.macosx.LWCToolkit
macOS 15.5
Kotlin plugin: K2 mode
GC: G1 Young Generation, G1 Concurrent GC, G1 Old Generation
Memory: 8192M
Cores: 12
Metal Rendering is ON
Registry:
  ide.experimental.ui=true
  com.android.studio.ml.activeModel=com.android.studio.ml.AidaModel
  ide.images.show.chessboard=true
  kotlin.scripting.index.dependencies.sources=true
Non-Bundled Plugins:
  com.intellij.marketplace (251.25410.159)
  com.jetbrains.kmm (0.9-251.25410-AS-69)
  com.markskelton.one-dark-theme (5.13.0)
  Dart (251.25410.28)
  wu.seal.tool.jsontokotlin (3.7.7)
  com.bytedance.idea-tools.bytedance-plugin-store (4.2.0-231)
  com.bytedance.tools.wrangler (2.3.1)
  com.bytedance.asplugin.as.plugin.bytedance-as-plugin (1.21.6)
  com.bytedance.buildinfra.ide-metrics (1.0.4)
  com.codeverse (2.3.0.17)
  com.mallowigi (101.2.0)
  zielu.gittoolbox (600.1.4+243)
  io.flutter (86.0.2)

界面说明

当前文件管理器界面的视图设置菜单中,未出现目标包显示选项。

解决步骤

  • 检查视图设置入口:点击文件管理器顶部的齿轮图标(视图设置按钮),展开菜单仔细查找,部分选项可能因版本更新调整了名称或位置。
  • 关闭实验性UI:当前IDE开启了实验性UI(ide.experimental.ui=true),这是选项消失的核心原因。操作路径:File > Settings > Appearance & Behavior > Appearance,取消勾选“Use experimental UI”,重启IDE后再次查看文件管理器的视图选项。
  • 通过注册表启用选项:若不想关闭实验性UI,可直接修改注册表:按Shift+Cmd+A(Mac)或Shift+Ctrl+A(Windows/Linux)搜索“Registry”,找到以下相关项并确保其处于启用状态:
    • android.projectView.middle.empty.packages(对应Compat Middle Empty Packages)
    • android.projectView.middle.packages(对应Compat Middle Packages)
    • android.projectView.flatten.packages(对应Flatten packages)
  • 重置视图默认设置:右键点击文件管理器的根目录(如app模块),选择“Restore Default View”,恢复默认视图配置后重新检查选项。

内容的提问来源于stack exchange,提问作者王新朋

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.12 18:05:19