ionic cordova run build android 报错

来源:3-7 Android 开发环境安装实战演示

qq_我不想睡觉_0

2018-11-07

图片描述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回答

Parry

2018-11-07

没有这个命令啊

ionic cordova run build

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

0
0

Parry

2018-11-07

没有这个命令吧

ionic cordova run build android


0
1
qq_我不想睡觉_0
等下,我吃个饭就给你截图
2018-11-07
共1条回复

Parry

2018-11-07

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

0
3
qq_我不想睡觉_0
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
共3条回复

快速上手Ionic3多平台开发企业级问答社区

新手可学,独立开发跨iOS/Android/微信平台项目

613 学习 · 750 问题

查看课程