【问题标题】:not able to import module in Android Studio Arctic Fox 2020.3.1?无法在 Android Studio Arctic Fox 2020.3.1 中导入模块?
【发布时间】:2021-11-04 00:33:14
【问题描述】:

在尝试从File -> New -> Import-Module 选项导入模块时,它会打开Import Module from Source 对话框,但在选择模块完成按钮的路径后未启用它仍然处于禁用状态。

我不知道为什么即使选择了正确的模块源目录也没有启用完成按钮,这在我将 android studio 更新为 arctic fox 后开始发生。

在旧版本的 android studio 中,它运行良好。

请帮帮我

【问题讨论】:

  • 这是 AS 中的一个错误。您需要手动完成所有工作
  • 检查 settings.gradle 文件是不是这个模块之前已经添加了。像这样:包括 ':app' ,':imagepicker'
  • @DeePanShu 模块未添加到 settings.gradle
  • 那你得手动添加
  • 我安装了以前版本的 android studio,它工作正常

标签: android android-studio


【解决方案1】:

此错误位于 Android 工作室北极狐中。尝试按此顺序手动添加:

  1. your-module文件夹复制到你的项目目录中
  2. settings.gradle 中添加以下行

include ':your-module' // your-module is module name
  1. 点击sync now
  2. 完成

【讨论】:

    猜你喜欢
    • 2021-10-16
    • 2021-12-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多