ionic serve 可以正常运行
ionic cordova build android (--release) 之后生成platforms,但文件夹里面为空:
目前就是这样的,不知道哪里出了问题了,以前都是好好的,没啥毛病,国庆来了,就变成这样了
我以为是版本的问题,我卸载了cordova8的版本,重装了7的版本,
$ ionic cordova build android
> cordova platform add android --save
Using cordova-fetch for cordova-android@~6.2.2
Error: Failed to fetch platform cordova-android@~6.2.2
Probably this is either a connection problem, or platform spec is incorrect.
Check your connection and platform name/version/URL.
Error: cmd: Command failed with exit code 1 Error output:
npm ERR! code E400
npm ERR! 400 Bad Request: cordova-android@~6.2.2
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Program Files\nodejs\node_cache\_logs\2018-10-08T07_14_12_885Z-debug.log
[ERROR] Exception:
还是不成,