[英]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:可以手动导入现有模块:
Move existing module folder to project folder将现有模块文件夹移动到项目文件夹
In settings.gradle file add include part for your existing module:在 settings.gradle 文件中为现有模块添加包含部分:
include ':app', ':your-module'包括 ':app', ':your-module'
Go to app's gradle file and add dependency to it:转到应用程序的 gradle 文件并为其添加依赖项:
implementation project(":your-module")实施项目(“:你的模块”)
Sync gradle同步gradle
Now your module should be successfully imported现在您的模块应该已成功导入
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.