Error after importing module Volley

When I`ve installed the module Volley in android studio I receive the error:

Error:A problem occurred configuring project ':volley'. failed to find target with hash string 'android-22' in: C:\Users\ egen\AppData\Local\Android\sdk Open Android SDK Manager

I've installed the android support repository what is wrong here?

EDIT

Now I receive the error:

Error:(10, 1) A problem occurred evaluating root project 'Fysio5'.

Could not find method compile() for arguments [directory 'libs'] on org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler_Decorated@79554741.

This is my build.gradle:

 // Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:1.3.0'

        compile fileTree(dir: 'libs', include: ['*.jar'])
        compile 'com.android.support:appcompat-v7:23.0.1'
        compile project(":volley")
    }
}

allprojects {
    repositories {
        jcenter()
    }
}


ANSWERS:


Seems, you don't have the Android 5.1.1 (API 22) SDK installed. Open the Android SDK manager to check and install if necessary.


  1. Go to app/src/build.gradle (see 1st image) enter image description here

  2. Change the compileSDKVersion 22 to 19 (or to the API level that you are using)

  3. Sync the project (see 2nd image) enter image description here


 MORE:


 ? How can I change the defined API version of an Android app?
 ? Error importing from Eclipse to Android Studio
 ? Android Studio build fails with "Task '' not found in root project 'MyProject'."
 ? Android Studio - Gradle Sync Project Failed - Failed to find target hash string
 ? Android studio - gradle - failed to find target with hash string 'Google Inc.:Glass Development Kit Preview:19'
 ? Rendering Problems: Android Studio 2.2 - Constraint Layout
 ? Rendering Problems: Android Studio 2.2 - Constraint Layout
 ? Rendering Problems: Android Studio 2.2 - Constraint Layout
 ? Layout preview rendering problems in android studio(Android Studio 1.2)
 ? Facebook LoginButton could not be instatiated