鍍金池/ 問答/Android  HTML/ WINDOWS 進行ionic+android開發(fā) ,安裝android平臺支持

WINDOWS 進行ionic+android開發(fā) ,安裝android平臺支持時出錯

WINDOWS 進行ionic+android開發(fā)

安裝android平臺支持時出錯

出錯信息如下:

D:\projects\MyIonicProject>ionic cordova platform add android
> cordova platform add android --save
Using cordova-fetch for cordova-android@~7.0.0

(node:24964) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): CordovaError: Failed to fetch platform cordova-android@~7.0.0
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@~7.0.0

npm ERR! A complete log of this run can be found in:
npm ERR!     D:\nodejs\node_cache\_logs\2018-03-30T03_48_58_666Z-debug.log
(node:24964) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

回答
編輯回答
骨殘心

這種情況下應該怎么設置代理呢?

2017年8月8日 03:07