英文:
what is the green dot that appears in android studio?
问题
在Android开发中,有一个带有绿点的目录图标。
我不明白这个图标的用途...
我在某个地方读到说这代表“Android模块”,
但是我知道“androidTest”和“main”不是模块,但它们仍然有这个图标。
我真的很困惑,希望你们能帮我搞清楚...
一般来说,模块图标应该是带有蓝色矩形的灰色目录。
实际上,它是一个空文件夹,而其他目录比如“test[unit]”却有模块图标。
为什么会这样呢?
英文:
In android development there is an icon of directory with a green dot on it.
I don't understand what is this icon used for...
In one place I have read that it means "android module",
but I know that "androidTest" and "main" are not modules, but still they have got this icon.
I am really confused and hope that you guys can help clarify it to me...
and generally, the module icon should be gray directory with blue rectangle.
in practice, it is a blank folder, and other directories such as "test[unit]" got the module icon.
why is that really?
答案1
得分: 1
"live/active" 表示该模块是“活动的”。这通常指的是您项目中具有活动“运行配置”的部分。大多数这些配置是在 AS 检测到特定类型的模块(测试/构建变体等)时自动创建的。
例如,如果您有多个构建变体,并且为这些构建变体具有特定的文件夹,请尝试更改特定模块的活动构建变体,注意此时的“绿色点”将更改为当前活动的构建变体。
英文:
That means that the module in question is "live/active". This normally refers to portions of your project that have an active "Run configuration". Most of those configurations are created automatically, when AS detects a specific type of module (tests/build variants/etc.)
For example, if you have multiple build variants, and have specific folders for those build variants, try changing the active build variant for a specific module and notice that the "green dor" will change to the build variant that is active at that moment.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论