android - cordova is not a valid task -
i format mac , set ionic environment
1.install node.js
2.npm install -g cordova
3.npm install -g ionic@2.2.3
after that, ionic serve -l
can run without error, when try build android ionic cordova build android --prod
error coming out.
ionic info:
your system information: cordova cli: have been opted out of telemetry. change this, run: cordova telemetry on. 7.0.1 ionic framework version: 2.0.0 ionic cli version: 2.2.3 ionic app lib version: 2.2.1 ionic app scripts version: 2.1.3 ios-deploy version: not installed ios-sim version: not installed os: macos sierra node version: v6.11.3 xcode version: xcode 8.3.3 build version 8e3004b
when run ionic serve -l
, show warning me
you need add add platforms want target app. add 'ios' , 'android' platform.
$ cordova platform add android
if else in place , have added required resources type:
ionic cordova build android
if face android resource issue can use command:
ionic resources
and rebuild it.it should work then.
Comments
Post a Comment