+ Start a Discussion
Tzemach AronovTzemach Aronov 

forcedroid create Too many arguments

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 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
Too many arguments."
NagendraNagendra (Salesforce Developers) 
Hi,

Forcedroid 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:
sudo npm install forcedroid -g
Windows—At the Windows command prompt, type:
npm install forcedroid -g
Once complete, you can create your Android project.

Regards,
Nagendra.

 
Pratik PawarPratik Pawar
 Install git https://git-scm.com/

It's worked for me.

While installing git from above link, please keen in mind you have to check a checkbox of "Use git from command prompt ".

Thank you.