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()
}
}