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

前端 未结 8 936
长发绾君心
长发绾君心 2020-12-08 18:48

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 p

相关标签:
8条回答
  • 2020-12-08 19:30

    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.

    0 讨论(0)
  • 2020-12-08 19:42

    I opened the HTTP URL in browser, that my collaborator sent me:

    https://github.com/mansonpeter/GoUpApp/invitations

    for download and join the developing team, there was an accept button, after accepting hopefully the error gone, repository test was successful and I got the project in android studio. before this I had tried all the suggestion on this page and non of them was efficient.

    0 讨论(0)
  • 2020-12-08 19:46

    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.

    0 讨论(0)
  • 2020-12-08 19:48

    Goto Settings > Version Control > Git and set SSH Executable to "Native" instead of "Built-in". Then restart your IDE for settings to apply.

    Worked for me in all jetbrains IDEs.

    0 讨论(0)
  • 2020-12-08 19:50

    I am on Ubuntu 16.04 (this applies to other versions as well) and all I needed to do was to install git from apt-get:

    sudo apt-get install git
    

    This means Android Studio was trying to execute git command but it could not be recognized so if you have git installed then try to execute git from terminal and if not recognized then you should configure paths to git executable. That was it!!!

    0 讨论(0)
  • 2020-12-08 19:51

    Just to add to Sree's answer, I was getting this error even after installing Git, but the problem is that I didn't install it to the default installation folder.

    After choosing the right path and folder in the VCS settings tab, it worked beautifully.

    0 讨论(0)
提交回复
热议问题