Question: Hi I am working on `PhoneGap` through a command line interface. 

I am able to create a project, and run an android emulator from the command prompt in Windows 7.

Since I imported and copied the project into my workspace in eclipse, it is showing some errors in the main class which extends `CordovaActivity`. 

The error is:

```
"CordovaActivity cannot be resolved to a type".

```

What should I do?

Answer: 
click the project and select Properties -> Java Build Path -> Source and Add Folder to include the CordovaLib\src folder.

(or)

if you have appname-CordovaLib as an existing project; You can add it to the sourcepath.
I resolved by this way.

1. Download cordova-android-master
2. Extract and goto framework directory
3. Open command prompt and run "ant jar" command
4. Again go to framework directory and
5. copy cordova-4.1.0-dev.jar file
6. Add this jar file into build path of the cordova project into eclipse.

This resolved all errors for me.