[英]Cordova Project in Visual studio 2015 RC Media not defined even when plugin included
I have a Visual studio 2015 Cordova Project. 我有一个Visual Studio 2015 Cordova项目。 When I try to use the "Media" plugin I got an error of "Media is not defined".
当我尝试使用“媒体”插件时,出现“未定义媒体”错误。
In Visual Studio I have included the plugin , but it doesn't work. 在Visual Studio中,我包含了插件,但是它不起作用。
I had the project before created in Eclipse and it worked properly. 在Eclipse中创建之前,我有这个项目,它可以正常工作。
Do you have any idea what to do next? 你知道下一步该怎么做吗?
This is a part of config.xml located in the root of the project 这是位于项目根目录下的config.xml的一部分
<vs:plugin name="org.apache.cordova.device-orientation" version="0.3.11" />
<vs:plugin name="org.apache.cordova.file" version="1.3.3" />
<vs:plugin name="org.apache.cordova.media" version="0.2.16" />
<vs:plugin name="org.apache.cordova.device" version="0.3.0" />
<vs:plugin name="org.apache.cordova.device-motion" version="0.2.11" />
<vs:plugin name="org.apache.cordova.inappbrowser" version="0.6.0" />
I got the same issue on cordova in visual studio 2015. 我在Visual Studio 2015的Cordova上遇到了同样的问题。
Tried to install "cordova-plugin-media-playback" and solved the issue immediately. 试图安装“ cordova-plugin-media-playback”并立即解决了该问题。
Try adding the plugin directly via Git. 尝试直接通过Git添加插件。
Ie:, 即:,
This worked for me. 这对我有用。 I must have spent 2 hours debugging this silly issue.
我一定花了2个小时来调试这个愚蠢的问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.