First check whether you have already installed Java in your machine. You can download latest version from link.
Please check this for requirements to develop Andriod app.
Otherwise,it probably because of wrong configurations.
This will also help you too.
Good Luck !