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 was able to get rid of the error by cleaning the project:

From the menu: Project > Clean...

Mac OS X 10.10, Eclipse Luna, and phonegap 3.6.0-0.21.18