【问题标题】:Two cordova-plugin-device plugins两个 cordova-plugin-device 插件
【发布时间】:2015-09-07 07:21:16
【问题描述】:

我刚刚将 cordova 插件 com.phonegap.plugin.mobile-accessibility 添加到我的 ionic 项目中,它已经自动安装了 cordova-plugin-device,因为它是它的依赖项。

这很好,但我已经以不同的名称 (org.apache.cordova.device) 安装了插件(作为另一个插件的依赖项)。有没有人对我是否应该保留两者或如何删除其中一个有任何想法。

我认为拥有这两个插件会导致以下错误并阻止我构建应用程序。

[INFO:CONSOLE(59)] "Uncaught module cordova-plugin-device.device not found", source: file:///android_asset/www/cordova.js (59)

我在尝试卸载其中一个插件时屏幕转储了依赖项错误。

【问题讨论】:

    标签: javascript cordova ionic cordova-plugins


    【解决方案1】:

    很容易修复,我删除了 android 平台,然后重新添加了它。在安装过程中,它跳过了第二个cordova-plugin-device 插件安装,所以现在平台只有一次。

    应用程序现在可以正常构建和运行。

    在这里找到答案 - http://forum.ionicframework.com/t/plugins-does-not-exist/2980/5

    注意:不需要删除和添加ionic & Cordova,只需要Android和iOS平台

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-07-05
      • 2021-08-18
      • 2018-06-22
      • 1970-01-01
      • 2021-06-14
      • 1970-01-01
      • 1970-01-01
      • 2018-08-04
      相关资源
      最近更新 更多