Phonegap CordovaActivity cannot be resolved

Today I got the error ‘CordovaActivity cannot be resolved’ in Eclipse while loading my existing Phonegap android application.  After few hours I figure out the problem myself.  When you load the Phonegap application in Eclipse it will load 2 projects, the first one is the Android application project and the second one is the Cordava Library project.

If you load both the projects then only you will get this error.  If you load first the library project and then the application project then you wont have this problem.

Step 1 – Import the Library project first

Import Library Project

Once imported check the xxxxxx-cordava.jar generated under bin directory

Step 2 – Import the application project

Import Application Project

You don’t see the problem now

Leave a Reply

Your email address will not be published. Required fields are marked *