简体   繁体   English

Android Studio库项目(模块)显示为不同的构建变体

[英]Android Studio Library Projects (Modules) show up as different Build Variants

I'm new to Android Studio so please forgive me if this question has been answered or the reason is obvious, but..... 我是Android Studio的新手,因此,如果此问题已得到解答或明显原因,请原谅我,但是.....

All of my library project dependency modules are showing up with different build variants in the Build Variants pane of Android Studio. 我的所有库项目依赖模块都在Android Studio的“构建变量”窗格中显示了不同的构建变量。

For example, my app uses the library project DragSortListView and I've imported that as a Module in Android Studio. 例如,我的应用程序使用库项目DragSortListView,并将其作为模块导入Android Studio。 Everything runs and compiles just fine, but I don't understand why this library module (along with the other library modules) is listed in the Build Variants pane. 一切都可以运行和编译,但是我不明白为什么在Build Variants窗格中列出了这个库模块(以及其他库模块)。 Is this normal or am I setting up my project incorrectly? 这是正常现象还是我的项目设置不正确? See the screenshot below :: 请看下面的截图::

在此处输入图片说明

This is normal. 这很正常。 It isn't showing each module as a different build variant, it's showing you each module in your project and allowing you to choose which build variant you want to build for that individual module. 它并没有将每个模块显示为不同的构建变体,而是向您显示了项目中的每个模块,并允许您选择要为该单个模块构建的构建变体。 The actual build variants are selectable in the right-hand column of that view. 在该视图的右列中可以选择实际的构建变体。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM