Skip to content Skip to sidebar Skip to footer

Phonegap Cordova 2.0.0 Android Apk Error

I build a very simple Sencha-Touch-2 app and deployed it to Eclipse. The app work on Chrome, but on the device I'm getting the following error: E/dalvikvm(270): Could not find cla

Solution 1:

Do you have 'cordova-1.9.0.jar' in your '/libs' folder ? Make sure this is in /libs folder if you are using ADT 17 or above version.

Solution 2:

I think it could be related with the new name of the lib folder (previously 'lib' now is 'libs'). Try to rename it an check if it works.

Extracted from this answer in SO


EDIT: Other possibility is that ProGuard is messing with the library to fix it you can try this:

-keep publicclass * extends com.phonegap.api.Plugin 
-keep publicclassorg.apache.cordova.DroidGap 
-keep publicclassorg.apache.cordova.** 
-libraryjars /Users/Nasir/Desktop/libs/commons-codec.jar
-dontwarn android.webkit.*

Extracted from this answer in SO

Post a Comment for "Phonegap Cordova 2.0.0 Android Apk Error"