无法从 git 导入 android 项目 [英] Can't import android project from git

查看:24
本文介绍了无法从 git 导入 android 项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将我的 github 中的存储库克隆到 android studio.导入时,出现两个错误:
ProjectName.iml 不存在
app.iml 不存在

I'm trying to clone a repository from my github into android studio. When I import, I get two errors:
ProjectName.iml does not exist
app.iml does not exist

我检查了包含这两个文件的路径,它们确实存在.另外,在那之后,我在 Android Studio 中没有看到我的项目的src"文件夹..我尝试切换到 Android 视图以及那里的所有其他视图,但无济于事.我检查了它创建的存储库,但不会显示在 Android Studio 中

I checked the paths that contain both of these files, and they do exist. Also, after that, I don't see the 'src' folder of my project within Android Studio.. I tried switching to Android view, and every other view there, to no avail. I checked the repository it created, but won't show up in Android Studio

推荐答案

这是 IDE 中的已知问题,

Its a known issue in the IDE,

关闭项目,删除工作室正在创建的项目文件夹,重新打开IDE,从根文件夹重新创建项目.

Close the project, delete the project folder which is being created by the studio, re-open the IDE and create the project from the root folder again.

它应该修复它.

这篇关于无法从 git 导入 android 项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆