Android : Unable to fetch platform android: Error: Failed to parse json

on Monday, March 23, 2015


Im running cordova version 4.3.0.


Suddenly, cordova commands have stopped working. I can create a new project. But when I go run:



cordova platform add android


I get:



Unable to fetch platform android: Error: Failed to parse json
Unexpected end of input


When I run the command "android" in Git Bash, I get the error:



sh.exe": android: command not found


The "android" command works in Command Line. I get the same error on Command Line when trying to add the android platform.


In my Environmental Variables, PATH includes the paths:



C:\Program Files (x86)\Android\android-sdk\tools;C:\Program Files (x86)\Android\android-sdk\platform-tools


Which are the correct paths to Android.


What could possibly be going on? Cordova has been working fine for months and then suddenly this..


0 comments:

Post a Comment