[ERROR] Error initializing Cordova: Class not found


My App is based on the Ionic sidemenu starter project.
It works fine in a browser, but trying to run it on my Android device results in an alert with the following message:

[ERROR] Error initializing Cordova: Class not found

I tried the suggested solutions in this post, but none of them solved the issue.

To reproduce the issue, please follow the instructions here.

Any ideas what’s going on?

How do you normally debug this stuff?


You need to install cordova plugins manually. They are not pre-included in cordova 3.5


What do you mean?
If you just follow the instructions for the demo app here, everything works fine, no need to install anything manually.
Why is this different in my case?


Any cordova plugin must be missing in your case. which version of cordova are you using ?

$ cordova --version

$ ionic --version
Installed Ionic CLI version: 1.1.1-beta3

# In browser's console
> ionic.version === "1.0.0-beta.9"


Related issue: https://github.com/driftyco/ionic/issues/1839