When add new version of Cordova 3rd party plugin, failed to run on iOS and Android


We have built up a Cordova plugin by ourselves, updated the old version 0.0.1 to new version 0.0.2 and publish to plugins.cordova.io with success. When we are using the 0.0.1 version by adding to meteor, everything is fine, we can build iOS and Android and tuning in emulation and physical devices. We remove the old version from meteor and add a new 0.0.2 version, then we met a problem when run the app and we got the following message on meteor terminal.

ritekiMacBook-Air:bllc char$ meteor add cordova:com.infapp.plugin.gizwitsandroid@0.0.2
added cordova plugin com.infapp.plugin.gizwitsandroid
ritekiMacBook-Air:bllc char$ meteor run android
Error while running for mobile platforms: Error running
Error: version not found: com.infapp.plugin.gizwitsandroid@0.0.2
at RegClient.get_
at RegClient.
at evalmachine.:272:14
at Object.oncomplete (evalmachine.:108:15)

Fetching plugin “com.infapp.plugin.gizwitsandroid@0.0.2” via plugin registry

ritekiMacBook-Air:bllc char$

We have tried to reset the meteor, the same problem. It seems meteor didn’t update the cache. And we are trying to solve it manually.


Do you mean meteor reset you can also try doing

rm -rf .meteor/local/cordova-build/
rm -rf .meteor/local/build/

can solve most of the plugin problems


Thanks reku, I have solved the problem by manually delete the plugin cache folder under ~/.meteor/android_bundle/.npm/, add the package again in meteor, it works anyway.