3

Hi am working on salesforce touch. I am trying to Install the Mobile SDK for Android but while doing it in the step 3. their is 'Open a command prompt in the directory where you installed the cloned repository, and run the install script from the command line: ./install.sh' while doing this process i am getting error "There was an error getting the status of the git repository:"Make sure the 'git' executable is on your PATH variable" can anybody help me to solve this issue.

  • What OS are you running? Did you have git installed? – metadaddy Nov 14 '12 at 6:52
  • yes i have installed it. I am using windows 7 (64 bit) – AnuRaj Nov 14 '12 at 6:53
  • sounds like something happened to your git installation - an error like that strikes me as unrelated to the SDK code but more your development environment. Did you use git clone to get a copy of the code locally? – jordan.baucke Nov 14 '12 at 6:59
  • Can you run git --version from a command prompt? – Mikey Nov 14 '12 at 7:24
  • 1
    How did you install git? As @jordan.baucke suggested, it sounds like there is something wrong with your development environment. I'd suggest following this guide to install git & the github app on Windows. Set Up Git – Mikey Nov 14 '12 at 7:30
2

I know it's been awhile since you posted the question, but I ran into the exact problem you encountered today: I'm trying to install the Salesforce Mobile SDK kit for Android on Windows 7. The guide

([http://wiki.developerforce.com/page/Developing_Hybrid_Apps_with_the_Salesforce_Mobile_SDK])1

says to:

Clone the SalesforceMobileSDK-Android project from GitHub:

git clone https://github.com/forcedotcom/SalesforceMobileSDK-Android.git

And you have to do this in Powershell (not cmd).

Then it says:

Windows ------- Run the install script from the Windows command line:

cd SalesforceMobileSDK-Android
cscript install.vbs

So I go to cmd, fumble around for a bit finding my GitHub\SalesforceMobileSDK-Android directory. When I try to cscript install.vbs, it says:

There was an error getting the status of the git repository: '' Make sure the 'git' executable is on your PATH variable.

So I go to change my PATH variable, but I can't find anything like *--something--*\Git\bin to point to. Then I realized, it's trying to use the git executable.

The solution is to do everything in Powershell. That is, in Powershell:

Go to your directory and

cscript install.vbs

and volia!

0

The question is long long time ago..But I'm posting this answer since I have faced the same issue and was able to resolve the issue.

After installing GIT, simply set the PATH* in your environment variables. This link will help you. Open new Command prompt and retry.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.