请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

ionic cordova run build android 报错

图片描述Unable to load PlatformApi from platform. Error: Unhandled “error” event.
(The platform “build” does not appear to be a valid cordova platform. It is missing API.js. build not supported.)
我什么都安装好了。为什么还会报这个错。。 网上没有找到答案= =

正在回答 回答被采纳积分+3

3回答

Parry 2018-11-07 14:35:31

没有这个命令啊

ionic cordova run build

你再看看课程。要么 run 要么 build。

0 回复 有任何疑惑可以回复我~
Parry 2018-11-07 12:20:09

没有这个命令吧

ionic cordova run build android


0 回复 有任何疑惑可以回复我~
Parry 2018-11-07 12:19:37

可以直接截图一下你执行命令的界面吗?

0 回复 有任何疑惑可以回复我~
  • 提问者 qq_我不想睡觉_0 #1
    ionic cordova run build
    回复 有任何疑惑可以回复我~ 2018-11-07 12:23:34
  • 提问者 qq_我不想睡觉_0 #2
    Using cordova-fetch for build@0.1.4
    
    Adding build project...
    
    Unable to load PlatformApi from platform. Error: Unhandled "error" event. (Does not appear to implement platform Api.)
    (node:14208) [DEP0016] DeprecationWarning: 'GLOBAL' is deprecated, use 'global'
    (node:14208) [DEP0025] DeprecationWarning: sys is deprecated. Use util instead.
    Unhandled "error" event. (The platform "build" does not appear to be a valid cordova platform. It is missing API.js. build not supported.)
    [ERROR] Exception:
    回复 有任何疑惑可以回复我~ 2018-11-07 12:32:56
  • 提问者 qq_我不想睡觉_0 #3
    D:\workspace-package\bkcapp-package>ionic cordova run build
    > cordova platform add build --save
    Using cordova-fetch for build@0.1.4
    
    Adding build project...
    
    Unable to load PlatformApi from platform. Error: Unhandled "error" event. (Does not appear to implement platform Api.)
    (node:14208) [DEP0016] DeprecationWarning: 'GLOBAL' is deprecated, use 'global'
    (node:14208) [DEP0025] DeprecationWarning: sys is deprecated. Use util instead.
    Unhandled "error" event. (The platform "build" does not appear to be a valid cordova platform. It is missing API.js. build not supported.)
    [ERROR] Exception:
    回复 有任何疑惑可以回复我~ 2018-11-07 12:37:56
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信