I have updated android studio with latest version and then after googling I also updated Android SDK with API 18 but still it gives the same error.
Okay you must try this guys it works for me: