Error initializing Cordova: Class not found

By: Ryan Wong at

When you get “Error initializing Cordova: Class not found” error, it means that the plugin is messed up, corrupted or duplicate. To fix this run

1
2
3
4
cordova remove platform android
cordova remove platform ios
cordova add platform android
cordova add platform ios

Hope this helps you out.