cordova create
I was using ant 1.7 which was causing the problem. There was no error message mentioning the version. After changing to Ant 1.8.xx, phonegap was able to install and build the android project.