错误运行子进程cordova时发生错误

编程入门 行业动态 更新时间:2024-10-25 16:22:21
本文介绍了错误运行子进程cordova时发生错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我已经完成了一个项目,我想构建一个apk.我已经尝试过构建它,但是在编写了构建它的句子之后,第三个代码给了我一个错误.这里是我编写的代码或句子.

I have finished a project, and I would like to build an apk. I have tried to build it, but after writing the sentences to build it, the third code gave me an error. Here the code or sentences I wrote to be built it.

ionic cordova platform remove android ionic cordova plarform add android@6.4.0 ionic cordova build android

3天前,我按照上面编写的代码构建了一个项目.这里的错误.(这次我与Firebase连接)

I have built a project 3 day ago following the code I wrode above. Here the error. ( this time I connect with firebase)

Platform android already added. [ERROR] An error occurred while running subprocess cordova. cordova platform add android@6.4.0 --save exited with exit code 1. Re-running this command with the --verbose flag may provide more information. E:\ionic\notasFirebase>ionic cordova build android > ionic-app-scripts build --target cordova --platform android [19:08:57] ionic-app-scripts 3.2.0 [19:08:57] build dev started ... [19:08:57] clean started ... [19:08:57] clean finished in 13 ms [19:08:57] copy started ... [19:08:57] deeplinks started ... [19:08:57] deeplinks finished in 61 ms [19:08:57] transpile started ... [19:09:03] transpile finished in 6.09 s [19:09:03] preprocess started ... [19:09:03] preprocess finished in 1 ms [19:09:03] webpack started ... [19:09:03] copy finished in 6.41 s [19:09:11] webpack finished in 8.34 s [19:09:11] sass started ... [19:09:13] sass finished in 1.66 s [19:09:13] postprocess started ... [19:09:13] postprocess finished in 29 ms [19:09:13] lint started ... [19:09:13] build dev finished in 16.44 s [19:09:19] lint finished in 6.02 s > cordova build android Unable to load PlatformApi from platform. Error: Cannot find module 'E:\ionic\notasFirebase\platforms\android\cordova\Api.js' Unhandled error. (The platform "android" does not appear to be a valid cordova platform. It is missing API.js. android not supported.)

推荐答案

请尝试使用此命令以在我的项目中使用.

Please try this command it work in my project.

npm i cordova-res

更多推荐

错误运行子进程cordova时发生错误

本文发布于:2023-08-05 05:41:51,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1303018.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:发生错误   进程   错误   cordova

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!