简体   繁体   English

在Android Studio中未获得“导入模块”选项

[英]Not getting “Import Module” option in Android Studio

I am trying to import one external existing module to my android application. 我正在尝试将一个外部现有模块导入我的android应用程序。 My Android Studio version is 3.0.1. 我的Android Studio版本是3.0.1。 But I am not getting any import module option by clicking the file in Android Studio. 但是我没有通过单击Android Studio中的文件获得任何导入模块选项。 So, how can I import the module in my application? 那么,如何在我的应用程序中导入模块?

在此处输入图片说明

Yon can import module by clicking on Yon可以通过单击导入模块

file>new>import module 文件>新建>导入模块

OR do it by following 或按照以下步骤进行

  1. place the module folder in the root directory of your project. 将模块文件夹放置在项目的根目录中。
  2. open setting.gradle file and include it in this file like 打开setting.gradle文件,并将其包含在该文件中,例如

"include 'your module folder name'" “包括'您的模块文件夹名称'”

Thats all now the module is added in your android studio project and you can access its methods with in your project. 到此为止,所有模块都已添加到您的android studio项目中,并且您可以在项目中访问其方法。

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

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