Android Studio says "compileSDK version missing"

android {
apply plugin: 'com.android.application’
compileSdkVersion 22<----(as you can see right here i have the compile SDK version)
buildToolsVersion “22.0.1”

defaultConfig {
    applicationId "com.example.owner.resiliantcoderssocialmediaupdate"
    minSdkVersion 9
    targetSdkVersion 22
    versionCode 1
    versionName "1.0"
}

not to sure why I’m getting this error in the gradle.build file
and yes I have downloaded the SDK version 22

You are applying the plugin from inside the android { } block which I think may be causing the issue. Move the apply statement to the root of your build script.