简体   繁体   English

将GitHub项目导入AndroidStudio时无法正确显示

[英]Importing GitHub project to AndroidStudio not appearing correctly

I'm working on an Android application and I've pushed it to GitHub from my windows computer, I'm having problems to pull the code from repository in Mac OS, when it downloads it shows like if the project was corrupt or something. 我正在开发一个Android应用程序,并将其从Windows计算机推送到GitHub,在从Mac OS的存储库中提取代码时遇到了问题,当它下载时,它显示项目是否损坏或其他原因。

It shows this: 它显示了这一点:

Android-studio专案

As you can see the project doesn't download the folder app and all the files that i pushed to the Repository 如您所见,该项目不会下载文件夹应用程序以及我推送到存储库的所有文件

I might not be pushing it correctly because i've tried to clone well built Android repositories and and they work nicely. 我可能没有正确推送它,因为我尝试克隆构建良好的Android存储库,并且它们运行良好。

Thanks a lot for your help and Sorry for my English. 非常感谢您的帮助,抱歉我的英语。

Things which you need to do, crate a directory where you want the project to be set up this. 您需要做的事情是创建一个目录,以在其中建立项目。

I made a directory called Juanjors_AndroidMeneame and navigated my git bash there. 我创建了一个名为Juanjors_AndroidMeneame的目录,并在那里浏览了git bash。

在此处输入图片说明

as shown in the image initialize local git repository. 如图所示,初始化本地git存储库。

and then pull the data. 然后拉数据。 as shown in the image 如图所示

git pull https://github.com/Juanjors/AndroidMeneame.git

after this import the project, and this is what you will get 导入项目后,这就是您将得到的

在此处输入图片说明

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM