For those who do not want to use it from the command line, just add an external cordova-android library project to solve this problem.
Follow these steps:
1- Download Cordoba android-mail from here https://github.com/apache/cordova-android .
2- Remove the zip anywhere on your PC. Go to the frame folder.
3 Import the extracted zip folder / framework into your eclipse as an existing project, which will lead to the Cordoba project (library) in your workspace.
4- Now right click on your application project -> Properties -> Android. In the "Library" section, select "Add" and select the "Cordoba" project (library).
5 Finally add import org.apache.cordova; to use the CordovaActivity extension.
Amrit pal singh
source share