Apache Cordova cannot connect to Android phone

Asked By 10 points N/A Posted on -
qa-featured

Hi there,

This error appeared in Apache Cordova when I have connected my android phone to my PC. I never had this kind of error before and everything worked fine. Now I am stuck with error and please is there an expert online that can help me with this ? Is something wrong with my phone ?

Thanks !

Apache Cordova

Connecting to Device

Device is Ready

Alert

[ERROR] Error initializing Cordova: Class not found

OK

SHARE
Answered By 0 points N/A #176169

Apache Cordova cannot connect to Android phone

qa-featured

This behavior is caused by the bug in the Hydration feature of Apache Cordova which makes the device plugin load too soon, triggering the "Class Not Found" error. To fix this problem, do the following:

1. Launch Apache Cordova.

2. Make sure you have the latest stable version (3.4.0) and update if you don't by clicking here

3. Disable the Hydration feature.

After these steps, you will no longer get the "Class Not Found" error.

Related Questions