`
wxinpeng
  • 浏览: 588579 次
  • 性别: Icon_minigender_1
  • 来自: 青岛
社区版块
存档分类
最新评论

Android build error upon upgrading Cordova camera plugin

阅读更多

最近Ionic2项目安装cordova-plugin-camera插件,一直报错。(已经Add了android的platform),大概的错误信息如下。

[ERROR] Cordova encountered an error. You may get more insight by running the Cordova command above directly. [ERROR] An error occurred while running cordova plugin add cordova-plugin-camera --save (exit code 1): Installing "cordova-plugin-camera" for android Failed to install 'cordova-plugin-camera': Error at D:\Program Files\nodejs\node_global\node_modules\cordova\node_modules\cordova-lib\src\plugman\install.js:581:33 at _fulfilled (D:\Program Files\nodejs\node_global\node_modules\cordova\node_modules\q\q.js:787:54) at self.promiseDispatch.done (D:\Program Files\nodejs\node_global\node_modules\cordova\node_modules\q\q.js:816:30) at Promise.promise.promiseDispatch (D:\Program Files\nodejs\node_global\node_modules\cordova\node_modules\q\q.js:749:13) at D:\Program Files\nodejs\node_global\node_modules\cordova\node_modules\q\q.js:509:49 at flush (D:\Program Files\nodejs\node_global\node_modules\cordova\node_modules\q\q.js:108:17) at _combinedTickCallback (internal/process/next_tick.js:73:7) at process._tickCallback (internal/process/next_tick.js:104:9) Error: Version of installed plugin: "cordova-plugin-compat@1.0.0" does not satisfy dependency plugin requirement "cordova-plugin-compat@^1.1.0". Try --force to use installed plugin as dependency.

 

解决方案:

Here's the commands we ran from the CLI:

  

cordova plugin remove cordova-plugin-compat --force
cordova plugin add cordova-plugin-compat@1.1.0

 

 

分享到:
评论

相关推荐

    Upgrading and Repairing Servers

    Upgrading and Repairing Servers Pages: 1128

    Build Report Tool 3.0.19.rar

    Note: If you are upgrading Build Report Tool in your project, delete the current BuildReport folder first before importing the new one! This will eliminate any potential metadata file conflicts with ...

    Android代码-Android 两状态 或者 三状态 Switch 按钮,三状态切换超实用。

    ** If you're upgrading from a version , check the changelog of the 1.2.0 version, there are breaking changes! [Changelog] (CHANGELOG.md) From version 1.2.0 you can choose between three switch design:...

    Upgrading to DB2 Version 9.7

    升级至DB2版本9.7:详尽指南与关键知识点 在IT领域,数据库管理系统(DBMS)的更新换代是确保数据处理效率、安全性及功能性的关键步骤之一。IBM的DB2作为全球广泛使用的数据库软件之一,其每一次版本升级都备受关注。...

    Upgrading and Repairing PCs, 21st Edition

    For 25 years, Upgrading and Repairing PCs has been the world’s #1 guide to PC hardware: The single source for reliable information on troubleshooting and fixing problems, adding hardware, optimizing ...

    Upgrading Oracle Applications

    标题:“Upgrading Oracle Applications”(升级Oracle应用程序)强调了文档的主要内容,即指导用户如何将Oracle应用程序从早期版本升级到Release 11i(11.5.10)。 描述:“Upgrading Oracle Applications”与标题...

    Upgrading and Repairing PCs, 19th Edition 2010

    Upgrading and Repairing PCs, 19th Edition 2010。2011年,就是上学期我刚学完的,我专业networking。这是第一学期的基础课。很好的资源,我买的正版。根大家分享。PDF版。

    SteamVR Plugin 1.1.1

    ATTN: When upgrading from an older version, it is best to first delete the SteamVR folder in your project, and then import the package. You may also want to delete any "openvr_api" files in your ...

    Oracle 安装升级迁移Different Upgrade Methods For Upgrading Your Database(11.2)

    Oracle数据库是全球广泛使用的数据库管理系统之一,特别是在企业级应用中。11.2版本是Oracle数据库的一个重要里程碑,提供了许多增强的功能和优化。本篇文章将详细介绍Oracle数据库从11.2之前的版本升级到11.2的不同...

    Upgrading to Office SharePoint Server 2007

    Upgrading to Office SharePoint Server 2007.

    Android.Game.Programming.by.Example.1785280120

    Harness the power of the Android SDK by building three immersive and captivating games About This Book Implement the critical main game loop and structure your games to enable an array of advanced ...

    Upgrading Visual Basic 6.0 to VB.NET

    MS Press - Upgrading Visual Basic 6.0 to VB.NET

    Upgrading_from_FreeRTOS_to_SafeRTOS pdf

    根据提供的文档信息,本文将详细解析从FreeRTOS升级到SafeRTOS的主要差异,这些差异主要集中在记忆体配置、函式参数检查以及内部资料检查三个方面。 ### 一、记忆体配置 在从FreeRTOS升级到SafeRTOS的过程中,记忆...

    Upgrading and Repairing Networks, Fourth Edition

    Upgrading and Repairing Networks, Fourth Edition Pages : 1248

    升级到PHP 7(Davey Shafik)Upgrading to PHP 7 (Davey Shafik)

    在这个版本中,性能得到了显著的提升,同时对开发者而言,语言的可用性和清晰度也有所增强。 ... 1. **改进的引擎:Zend Engine 3** ... - **标量类型声明**:允许开发者在函数参数和返回类型中指定必须是整型、浮点型、...

    Android代码-range-seek-bar

    Then add the dependency in your android app module's build.gradle file. If you are upgrading from a previous version, please take a look at changelogs to make sure nothing will break. dependencies { ...

Global site tag (gtag.js) - Google Analytics