简体   繁体   English

Android Studio Canary 版本(Arctic Fox 和 Bumblebee)不允许导入模块功能工作

[英]Android Studio Canary versions (Arctic Fox and Bumblebee) are not allowing Imported Modules feature to work

When using Android Studio Arctic Fox or Bumblebee, when we try to do "File -> New -> Import Module" and try to add Gradle project.当使用 Android Studio Arctic Fox 或 Bumblebee 时,当我们尝试执行“文件 -> 新建 -> 导入模块”并尝试添加 Gradle 项目时。 The "Finish or Next" buttons are greyed out. “完成或下一步”按钮变灰。

If you repeat the exact same process on Stable version 4.1 for example, the Import Module feature works.例如,如果您在稳定版 4.1 上重复完全相同的过程,导入模块功能将起作用。

Is this a known issue or is there a workaround to import modules for canary versions?这是一个已知问题还是有一种解决方法可以为金丝雀版本导入模块?

Existing module can be imported manually:可以手动导入现有模块:

  1. Move existing module folder to project folder将现有模块文件夹移动到项目文件夹

  2. In settings.gradle file add include part for your existing module:在 settings.gradle 文件中为现有模块添加包含部分:

    include ':app', ':your-module'包括 ':app', ':your-module'

  3. Go to app's gradle file and add dependency to it:转到应用程序的 gradle 文件并为其添加依赖项:

    implementation project(":your-module")实施项目(“:你的模块”)

  4. Sync gradle同步gradle

Now your module should be successfully imported现在您的模块应该已成功导入

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

相关问题 无法打开 Android Studio Canary 15 | 白狐 - Cannot open Android Studio Canary 15 | Arctic Fox Android Studio 北极狐 | 2020.3.1 Canary 14 找不到 arguments 的方法 dependencyResolutionManagement() - Android Studio Arctic Fox | 2020.3.1 Canary 14 Could not find method dependencyResolutionManagement() for arguments 文本在 Android Studio 北极狐中显示为框 - Text appear as boxes in Android Studio Arctic Fox Android Studio Arctic Fox 2 无法在 Linux 上启动 - Android Studio Arctic Fox 2 cannot launch on Linux Android 北极狐工作室风味维度问题 - Android Studio Arctic Fox Flavor Dimension Issue 在 Android Studio Arctic Fox 中设置图形编辑器 - Set graphics editor in Android Studio Arctic Fox 在 Android Studio Arctic Fox Canary 8 中,应用程序级别 build.gradle 不生成 `allprojects` 部分并在手动添加时导致错误 - In Android Studio Arctic Fox Canary 8, the app level build.gradle does not generate `allprojects` section and causes error when manually added android studio 北极狐无法启动 - android studio arctic fox can not start Android Studio arctic fox 中的渲染问题 - Render problem in Android Studio arctic fox 单元测试不适用于 Android Studio Arctic Fox - Unit tests not working on Android Studio Arctic Fox
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM