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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.