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

查看:79
本文介绍了无法从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,

关闭项目,删除Studio正在创建的项目文件夹,重新打开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天全站免登陆