简体   繁体   English

在Android Studio中签出BitBucket Android Studio项目

[英]Checkout BitBucket Android Studio project in Android Studio

I am trying to pull a new project into Android Studio, the project has been pushed by a fellow person using Android Studio, Android Studio has not made this easy at all. 我正在尝试将一个新项目拖入Android Studio,该项目已由使用Android Studio的其他人推送,Android Studio并没有使这项工作变得如此简单。 I have done the following. 我已经做了以下工作。

Remote Repository: 远程存储库: 在此处输入图片说明

Start of checkout(I click on clone): 开始结帐(我单击克隆): 在此处输入图片说明

After it clones, the files: 克隆后,文件:

在此处输入图片说明在此处输入图片说明

This is where I am unsure what I am supposed to do, I try importing: 这是我不确定应该做什么的地方,我尝试导入:

在此处输入图片说明

Am I supposed to import fela or app ? 我应该导入felaapp吗?

If I choose app it states this: 如果我选择app则说明以下内容:

在此处输入图片说明

The file structure is not the same as my other projects, as shown here: 文件结构与其他项目不同,如下所示:

在此处输入图片说明

This also complains: 这也抱怨:

在此处输入图片说明

If I choose fela it states: 如果我选择fela则说明:

在此处输入图片说明

To put salt in the wound, I press cancel, and it continues anyway. 要在伤口上撒些盐,请按“取消”,然后它仍然继续。

How should I import this project? 我应该如何导入该项目?

在结帐后导入项目时,请选择build.gradle而不是结帐项目目录的根目录。

while importing project don't select app or fela just select build.gradle which is inside app folder. 导入项目时,不要选择app或fela,只需选择app文件夹中的build.gradle。 and it will ask for gradle package. 它会要求gradle包。 please allow it to be downloaded once after that you can successfully use your project. 请在允许成功下载项目后再下载一次。

Ask if anything needed? 询问是否需要什么? Hope it helps !! 希望能帮助到你 !!

From the structure there it seems like you are missing a build.gradle file in the projects root folder "fela". 从结构上看,您似乎在项目根文件夹“ fela”中缺少build.gradle文件。 At least on all projects I've done there has been a build.gradle in the root and one in the app directory. 至少在我完成的所有项目中,根目录中都有一个build.gradle,而应用程序目录中有一个。 You might want to check with the person that pushed it if they included the roots build.gradle file. 您可能想要与推送它的人进行核对,看看他们是否包括根目录build.gradle文件。 I hope this helps. 我希望这有帮助。

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

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