Following is the build.gradle code in Android Studio
apply plugin: \'com.android.application\' android { compileSdkVersion 23 buildToolsVersion \"23
In my case I solved this error only by Invalidating caches.
File > Invalidate caches / Restart