Message "Error: Expected plugin to have ID "org.apache.cordova.device" but got "cordova-plugin-device"" is shown when is trying to build a Cordova Light application

Solution Verified - Updated -

Issue

  • Message "Error: Expected plugin to have ID "org.apache.cordova.device" but got "cordova-plugin-device"" is shown when is trying to build a Cordova Light application. Following an example of this issue.

    [BUILD] Copy application files...
    [BUILD] Copy asset files...
    [BUILD] Copy asset files...
    [BUILD] Adding build task to queue
    [BUILD] Creating project...
    [BUILD] Creating directories...
    [BUILD] Downloading files...
    [BUILD] Unzip files...
    [BUILD] Creating native project...
    [BUILD] Project created. Applying configuration changes and copying app files...
    [Error: Expected plugin to have ID "org.apache.cordova.device" but got "cordova-plugin-device".]
    

    Following the config.json file with this plugin.

    }, {
    "id": "de.appplant.cordova.plugin.local-notification",
    "url": "https://github.com/katzer/cordova-plugin-local-notifications#0.7.8",
    "version": "0.7.8"
    }, {
    

Environment

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content