Currently my dependencies look like:
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile files('libs/volley_1_0_8.jar')
compile 'com.android.support:support-v4:21.0.2'
compile 'com.android.support:support-v7:21.0.2'
compile files('libs/volley.jar')
compile files('libs/picasso-2.4.0.jar')
}
Which gives me the following error:
Error:Failed to find: com.android.support:support-v4:21.0.2
Install Repository and sync project
Open File
Open in Project Structure dialog
It looks like I have everything needed inside the SDK:
Clicking on "Install Repository and sync project" prompts me to install the support repo rev 9 (which I already have, according to the SDK manager?) While installing I always get the error
Failed to rename directory C:\Program Files (x86)\Android\android-studio\sdk\extras\android\m2repository to C:\Program Files (x86)\Android\android-studio\sdk\temp\ExtraPackage.old01.
It seems the directory is in use by Android Studio itself.
The question: how can I install the v7 support?