android– 构建错误cordova应用程序,“错误:404未找到:cordova-plugin-file”

android– 构建错误cordova应用程序,“错误:404未找到:cordova-plugin-file”,第1张

概述我正在尝试构建我的cordova应用程序,但从2015年4月3日开始,building给了我这个错误:Installing"cordova-plugin-media-capture"forandroidRunningcommand:C:\wamp\www\HTML5Application\platforms\android\cordova\version.batCommandfinishedwitherrorcode0:C:\wam

我正在尝试构建我的cordova应用程序,但从2015年4月3日开始,building给了我这个错误:

Installing "cordova-plugin-media-capture" for androIDRunning command: C:\wamp\www\HTML5Application\platforms\androID\cordova\version.bat Command finished with error code 0: C:\wamp\www\HTML5Application\platforms\androID\cordova\version.bat DependencIEs detected, iterating through them...Dependent plugin "cordova-plugin-file" not fetched, retrIEving then installing.Fetching plugin "cordova-plugin-file" via plugin registrynpm http GET http://registry.cordova.io/cordova-plugin-filenpm http 404 http://registry.cordova.io/cordova-plugin-fileFailed to install 'cordova-plugin-media-capture':Error: 404 Not Found: cordova-plugin-fileat RegClIEnt.<anonymous> (C:\Users\antoniof\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\node_modules\npm\node_modules\npm-registry-clIEnt\lib\request.Js:268:14)at Request.self.callback (C:\Users\antoniof\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\node_modules\npm\node_modules\request\index.Js:148:22)at Request.emit (events.Js:110:17)at Request.<anonymous> (C:\Users\antoniof\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\node_modules\npm\node_modules\request\index.Js:876:14)at Request.emit (events.Js:129:20)at IncomingMessage.<anonymous> (C:\Users\antoniof\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\node_modules\npm\node_modules\request\index.Js:827:12)at IncomingMessage.emit (events.Js:129:20)at _stream_readable.Js:908:16at process._tickCallback (node.Js:355:11)Error: 404 Not Found: cordova-plugin-fileat RegClIEnt.<anonymous> (C:\Users\antoniof\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\node_modules\npm\node_modules\npm-registry-clIEnt\lib\request.Js:268:14)at Request.self.callback (C:\Users\antoniof\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\node_modules\npm\node_modules\request\index.Js:148:22)at Request.emit (events.Js:110:17)at Request.<anonymous> (C:\Users\antoniof\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\node_modules\npm\node_modules\request\index.Js:876:14)at Request.emit (events.Js:129:20)at IncomingMessage.<anonymous> (C:\Users\antoniof\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\node_modules\npm\node_modules\request\index.Js:827:12)at IncomingMessage.emit (events.Js:129:20)at _stream_readable.Js:908:16at process._tickCallback (node.Js:355:11)C:\wamp\www\HTML5Application\nbproject\build.xml:235: exec returned: 1BUILD Failed (total time: 48 seconds)

似乎错误不依赖于我,因为cmd http://registry.cordova.io/cordova-plugin-file返回

{“error”:”not_found”,”reason”:”document not found”}

有没有办法报告问题?

解决方法:

使用org.apache.cordova.file直到另行通知.这仍然是插件注册表中使用的ID:http://plugins.cordova.io/#/package/org.apache.cordova.file
新的插件ID在dev分支上并且未发布.如果您现在需要实际安装开发版,请执行以下 *** 作:

cordova插件添加https://github.com/apache/cordova-plugin-file.git

资料来源:https://issues.apache.org/jira/browse/CB-8806

总结

以上是内存溢出为你收集整理的android – 构建错误cordova应用程序,“错误:404未找到:cordova-plugin-file”全部内容,希望文章能够帮你解决android – 构建错误cordova应用程序,“错误:404未找到:cordova-plugin-file”所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/web/1110854.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-05-29
下一篇2022-05-29

发表评论

登录后才能评论

评论列表(0条)

    保存