![](/img/trans.png)
[英]Can't do ajax calls from android device because cordova-plugin-whitelist is not installed but i can't install it?
[英]Meteor project not deploying to android because it can't install a cordova plugin
-尝试在Windows上的Android设备上部署一个简单的流星项目(我正在制作音板)时出现此错误。
-声音在浏览器版本上有效
-在应用实际播放声音之前,我没有收到此错误消息
-我尝试过流星重置并删除了android平台并再次添加
-我尝试过使用meteor add手动添加cordova插件,但是我不确定我是否正确使用了语法,甚至不确定git上的插件是否正确(我一直在尝试添加此插件: https:// github.com/floatinghotpot/cordova-plugin-nativeaudio )
这是完整的错误读数:
C:\Users\redacted\Documents\aaaaAppDev\Meteor\soundboardtest>meteor run android-device
[[[[[ C:\Users\redacted\Documents\aaaaAppDev\Meteor\soundboardtest ]]]]]
=> Started proxy.
=> Started MongoDB.
=> Errors executing Cordova commands:
While adding plugin com.rjfun.cordova.plugin.lowlatencyaudio@1.0.0 to Cordova project:
Cordova error: Failed to fetch plugin com.rjfun.cordova.plugin.lowlatencyaudio@1.0.0 via registry.
Probably this is either a connection problem, or plugin spec is incorrect.
Check your connection and plugin name/version/URL.
Error: Registry returned 404 for GET on https://registry.npmjs.org/com.rjfun.cordova.plugin.lowlatencyaudio
(If the error message contains suggestions for a fix, note that this may not apply to the Meteor integration.
You can try running again with the --verbose option to help diagnose the issue.)
C:\Users\redacted\AppData\Local\.meteor\packages\meteor-tool\1.3.0_3\mt-os.windows.x86_32\isopackets\cordova-support\npm\node_modules\meteor\promise\node_modules\meteor-promise\promise_server.js:116
throw error;
^
ExitWithCode:1
因此,由于该应用程序还很小,所以我刚刚创建了一个新项目,并将所有代码复制到了新项目中。 在这个新项目中,我从未使用“流星添加”做任何事情,但实际上将其部署到了android。
我有一个新的问题,即音频无法在android版本中播放,但这似乎是一个不同的问题,因此我将宣布此问题已解决。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.