cordova - failed to run 'forcedroid create' for a hybrid android app -
i going through salesforce trailhead "get started hybrid development".
now, try create forcedroid hybrid android app command "forcedroid create".
e:\temptry>forcedroid create enter application type (native, hybrid_remote, or hybrid_local): hybrid_local enter application name: mytrailhybridlocal enter target directory of app: trailhybridapps enter package name app (com.mycompany.my_app): com.mytrail.hybrid
but failed , got error message below.
". should in format x[.y[.ignored]] ) less minimum required version (5.4.0). please update version of cordova.
in fact, folder trailhybridapps exists , empty. , cordova v6.3.0.
e:\temptry>cordova -v 6.3.0
so, what's wrong? , can now?
thanks in advance.
in fact, have succeeded in finishing cordova android app acoording guide: https://cordova.apache.org/docs/en/latest/guide/cli/
so, think cordova has no problem , seems question resulted "npm forcedroid". on other hand, have not github installed. have github?
before running forcedroid create, run command:
cordova telemetry off
then forcedroid create
should work. or, uninstall cordova , reinstall specific version, i.e.:
npm uninstall -g cordova npm install -g cordova@5.4.0
you don't have github.
Comments
Post a Comment