android - 安装插件媒体后,我的科尔多瓦应用程序卡住了
问题描述
我尝试构建一个基于cordova的android应用程序,安装了“cordova-plugin-media”,因为我希望我的应用程序能够录制我的声音。构建成功且没有错误后,我运行应用程序,录制工作正常,但我的应用程序卡住了。
Cordova 项目是从 Construct 2 导出的,我已经检查了导出的媒体许可。我已经通过 CMD 使用 SDK 构建了应用程序,并在此处添加了“插件媒体”。在我添加插件之前,应用程序运行良好,但无法录制。这就是为什么我用附加的插件媒体重新构建它。
从结果导出中,我只编辑了我的 Cordova 项目中的 config.xml。
<?xml version='1.0' encoding='utf-8'?>
<widget id="com.mawar.speak" version="1.0.0.2" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>Speech Platformer</name>
<description>
Aplication Description.
</description>
<author email="dummy@gmail.com" href="http://cordova.io">
Node.js
</author>
<content src="index.html" />
<plugin name="cordova-plugin-whitelist" spec="1" />
<access origin="*" />
<platform name="android">
<allow-intent href="market:*" />
</platform>
<!-- fullscreen -->
<preference name="Fullscreen" value="true" />
<!-- orientation -->
<preference name="Orientation" value="landscape" />
<engine name="android" spec="~7.1.1" />
</widget>
我想要的是让我的应用程序在安装了插件媒体的情况下运行良好。但是当我用它构建时,当我在我的设备上运行它时它就卡住了。
对不起,我的英语不好。
解决方案
推荐阅读
- symfony - Symfony 3 - 无法使用自定义存储库
- ruby-on-rails - 在 Ruby on Rails 中使用 IP 代理
- reactjs - how to use React Redux to display data without mapping method
- python - 使用两个变量在 Flask 中更新 MySQL 数据库
- javascript - 如何在类构造函数中记录对象?
- excel - How to Return a Comma Separated Value List to single Excel Cell based on Condition from Range
- expression - 在 Qlik Sense 中为变量值添加书签
- javascript - 如何限制画线的位置
- macos - 我可以在磁盘映像打开时修改它,但不能“保存更改”吗?
- c++ - How do some libraries override operator[] with multiple return types?