Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting "Repositroy test has failed" error while cloning repository from Gitlab in Android Studio?

I will like to clone my android code from gitlab repository in Android Studio 0.8.1.I checked into VCS >> Checked out from Version Control >> Git >> Added HTTP url here.It prompts me that "Repositroy test has failed".Kindly help me to sort out the issue.I have checked the plugins as well.Thanks a lot.

like image 367
Karthik Avatar asked Jul 08 '14 06:07

Karthik


People also ask

How do I clone a GitHub repository in Android Studio?

On github web, go to the repo you want yo clone and click on the download button (code) then copy the url where it says clone with https. In Android Studio 4.0, go to VCS (if you've added a github plugin) then click on Get From Version Control, it will load a window where you'll paste in the url you got from github.

Can you git clone from GitLab?

If 'git clone' doesn't work, you might not have Git installed locally. Developers can solve that problem by issuing a 'sudo apt-install git' command. After the installation completes, simply re-issue the 'git clone' command to clone the GitLab repository.


2 Answers

You need to download and install git from http://git-scm.com/downloads

Then you need to track the git.exe on AndroidStudio:

  • Go to Settings > Project Settings > Version Control > VCSs > Git > Path to Git executable

  • Select (or type) executable path, eg: D:\Program Files (x86)\Git\cmd\git.exe

If you installed GitHub Desktop for Windows

In case you have GitHub Desktop for Windows, git.exe will be found at C:\Users\YOUR_USER_NAME\AppData\Local\GitHub\PortableGit_c7e0cbde92ba565zz218z5214zzz0e854zzza28\cmd.

like image 164
Sree Avatar answered Sep 23 '22 20:09

Sree


If you Installed git from http://git-scm.com/downloads and also sett the correct path and still get an error maybe you sit behind a Proxy, in this case you have to add the Proxy to the git. This is Possible in the gitconfig. Wich should be avaiable in :\Program Files (x86)\Git\etc if you used the standard path for installation.

like image 20
Sebastian Holler Avatar answered Sep 24 '22 20:09

Sebastian Holler