[ERROR] Error initializing Cordova: Class not found


#1

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?


#2

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


#3

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?


#4

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


#5
$ cordova --version
3.5.0-0.2.6

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

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

#6

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