首页 > 解决方案 > 安装插件媒体后,我的科尔多瓦应用程序卡住了

问题描述

我尝试构建一个基于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> 

我想要的是让我的应用程序在安装了插件媒体的情况下运行良好。但是当我用它构建时,当我在我的设备上运行它时它就卡住了。

对不起,我的英语不好。

标签: androidcordovacordova-pluginsconstruct-2

解决方案


推荐阅读