简体   繁体   English

从Github导入项目到androidstudio(Gradle)

[英]Import project from Github to androidstudio (Gradle)

My team has a repository in bitbucket which I need to clone and use in my system. 我的团队在bitbucket中有一个存储库,需要在我的系统中克隆并使用它。 I tried VCS > checkout from Version control > Git then gave the repo url, path specifying the directory where the project has to be cloned and the project directory name. 我尝试了VCS>从“版本控制”中检出> Git,然后提供了repo url,指定必须克隆项目的目录和项目目录名称的路径。

The cloning went well and I can find the project dir in the filesystem. 克隆进展顺利,我可以在文件系统中找到项目目录。 After that is asking some permission regarding gradle and asking for inputs regarding where the gradle is present. 之后,询问有关gradle的许可,并要求输入有关gradle的位置。 I selected the gradle in my android-studio and it accepted it. 我在我的android-studio中选择了gradle,它接受了它。 When I click ok it is throwing the following error. 当我单击确定时,它会引发以下错误。

The screenshot of gradle input: gradle输入的屏幕截图: gradle输入的屏幕截图

The screenshot of error: 错误的屏幕截图: 错误的屏幕截图

Then I went to my SDK manager and installed all the android versions from 2.3 to 6.0 . 然后我去我的SDK管理器并安装了从2.3到6.0的所有android版本。 Still the error persists. 错误仍然存​​在。

File->New->Project from version control->Git: Clone repository: Your bitbucket url 文件->新建->来自版本控制的项目-> Git:克隆存储库:您的位桶URL

https://username@bitbucket.org/team/projectname.git https://username@bitbucket.org/team/projectname.git

EDIT: Install sdk 23: http://developer.android.com/intl/es/tools/help/sdk-manager.html 编辑:安装SDK 23: http//developer.android.com/intl/es/tools/help/sdk-manager.html

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

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