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.
Change
compileSdkVersion 18 minSdkVersion 10 targetSdkVersion 18
in build.gradle in your app directory/module
Or Download Latest API Version