You need to sign in to do that
Don't have an account?
AbbasNv
Forcedroid create error
I'm trying to go through "Trailhead Native Android" and I'm getting stuck in the first chapter on "forcedroid create". the error I'm getting after i enter the output directory and the error even appears when i leave it blank.
error i am getting from the command line is
"forcedroid create failed
Command failed: git clone --branch v5.0.0 --single-branch --depth 1 --recurse-submodules https://github.com/forcedotcom/SalesforceMobileSDK-Templates C:\Users\Owner\Documents\Android project\tmp84510\SalesforceMobileSDK-Templates
'git' is not recognized as an internal or external command,
operable program or batch file."
error i am getting from the command line is
"forcedroid create failed
Command failed: git clone --branch v5.0.0 --single-branch --depth 1 --recurse-submodules https://github.com/forcedotcom/SalesforceMobileSDK-Templates C:\Users\Owner\Documents\Android project\tmp84510\SalesforceMobileSDK-Templates
'git' is not recognized as an internal or external command,
operable program or batch file."
Force droid is the package for Android installation. Salesforce publishes a Node Packaged Module (npm) package to help you create Mobile SDK apps and you use the npm script to install Mobile SDK and to create projects.
Your best bet here is to follow the steps provided by Salesforce for installing Node.js to use the Mobile SDK npm installers. Once you have that installed you can go ahead and install the force droid utility as follows.
Mac OS X (or other non-Windows environments)—In a terminal window, type: Windows—At the Windows command prompt, type: Once complete, you can create your Android project.
Regards,
Nagendra.
I followed the steps as it is as they were mentioned by the SalesForce but still getting the same error.
And even intstalled "git" into the system but did not helped me much.
Please help me through this.
Regards,
Abbas.
forcedroid create failed
Command failed: git clone --branch v5.0.0 --single-branch --depth 1 --recurse-submodules https://github.com/forcedotcom/SalesforceMobileSDK-Templates
is TrailHead is wrong?
Any salesforce Experts That's resolve this issue.
Thanks
Mukesh
like D:or E:
n directly type forcedroid create
no need to install all packages again
.
It helped me and my issue got solved.
Regards,
Abbas.
@AbbasNv
I've tried to change the directory but it's not working for me.
I thought this error occuring due to the link from system trying to clone project repo
in above link system assuming .git(Extetion of the link) as a command.
can anyone able to resolve/guide this issue?
I had the same problem, but after I've installed GIT I solved the problem.
Tip for win users (like me): run the command "forcedroid create" in gitbash command line, not windows command line. It will works :)
Best,