Android build failed due plugin error



i’ve installed the plugin com.rjfun.cordova.plugin.admob a couple time ago but i’ve removed the plugin last month. I’ve just deleted the plugin folder to delete the plugin. When I try to build the project I do get an error.

These are the things I have tried:

  • Remove the plugin on this way: cordova plugin rm com.rjfun.cordova.plugin.admob
  • Delete the com.rjfun.cordova.plugin.admob plugin in the fetch.xml and the android.xml files in the plugins folder.

This is the error I do get when i’m typing in: cordova build android

    Error: ENOENT, no such file or directory 'C:\Users\Dirk\Hollan
d App 2015\Ionic\Holland\plugins\com.rjfun.cordova.plugin.admob\plugin.xml'
    at Object.fs.openSync (fs.js:432:18)
    at Object.fs.readFileSync (fs.js:289:15)
    at Object.module.exports.parseElementtreeSync (C:\Users\Dirk\AppData\Roam
    at new PluginInfo (C:\Users\Dirk\AppData\Roaming\npm\node_modules\cordova
    at PluginInfoProvider.get (C:\Users\Dirk\AppData\Roaming\npm\node_modules
    at C:\Users\Dirk\AppData\Roaming\npm\node_modules\cordova\node_modules\co
    at Array.forEach (native)
    at Object.handlePrepare (C:\Users\Dirk\AppData\Roaming\npm\node_modules\c
    at C:\Users\Dirk\AppData\Roaming\npm\node_modules\cordova\node_modules\co
    at (native)

I hope that anyone have had the same problem or know a way to resolf this problem.

Thank you! :slight_smile:


Do anyone know a solution? It would be great