android-studio - 在配置中设置模块

标签 android-studio

我正在尝试打开示例 Android project在安卓工作室。 项目打开,但我无法在我的模拟器上编译和运行它。

enter image description here

我尝试添加配置但无法选择模块:

enter image description here

为什么会这样?我该如何解决这个问题?

最佳答案

-项目中缺少以下文件
/.idea/BitsandPizzas.iml
/app/app.iml
- 一旦你新打开的项目 android studio 将要求删除以下两个模块(app 和 BitsandPizzas)你保留模块。 - 并重新构建了项目。 -它对我有用。

关于android-studio - 在配置中设置模块,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55430951/

相关文章:

java.io.IOException : Cannot run program adb. exe CreateProcess 错误=5,访问被拒绝

android - 无法在android studio 0.2.3中创建新项目

android - 约束布局需要澄清

java - 组织.gradle.process.internal.ExecException : Process 'command finished with non-zero exit value 1

android - 错误 : Could not determine artifacts for androidx. cardview :cardview:1. 0.0:没有可用于离线模式的缓存版本

android - 从 Android Studio logcat 中的 System.out.print 中删除时间、日期和包名称

单击运行时 Android Studio 不重建

java - 我无法在使用 android 中的 java 的 Retrofit2 调用中接收响应无法解析模型中的响应

android - 在 android studio 中导入并开发一个 ionic 项目

android - 我可以更改 ArCore 虚拟相机的姿势或在一个场景中有多个虚拟相机吗?