我tryng建立我科爾多瓦的應用程序,但是從2015年開始,4月3日,建築給了我這個錯誤:生成錯誤科爾多瓦的應用程序,「錯誤:404未找到:科爾多瓦 - 插件文件」
Installing "cordova-plugin-media-capture" for android
Running 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 registry
npm http GET http://registry.cordova.io/cordova-plugin-file
npm http 404 http://registry.cordova.io/cordova-plugin-file
Failed to install 'cordova-plugin-media-capture':Error: 404 Not Found: cordova-plugin-file
at 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:16
at process._tickCallback (node.js:355:11)
Error: 404 Not Found: cordova-plugin-file
at 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:16
at process._tickCallback (node.js:355:11)
C:\wamp\www\HTML5Application\nbproject\build.xml:235: exec returned: 1
BUILD FAILED (total time: 48 seconds)
看來,誤差不取決於我,因爲CMD http://registry.cordova.io/cordova-plugin-file回報
{"error":"not_found","reason":"document not found"}
有沒有辦法來報告問題呢?
喜斯文,感謝您的答覆。我省略了我通過Netbeans 8.0.2運行構建。但是,通過運行您的命令,我收到了其他錯誤,因此我決定刪除Android平臺,然後重新添加並重新構建它。當然,在命令行而不是通過netbeans運行這些。現在一切正常。我希望這些信息對其他人有用。 謝謝 –