I am trying to make an application, but there seems to be some error with gradle files. It worked fine until I updated the support libraries. I worked with api 21, which worked fine, but then I upgraded to api22 and modified the gradle files accordingly. Now this error appears.
Error:Failed to find: com.android.support:support-v4:22.2.0
This is my current gradle file:
apply plugin: 'com.android.application' android { compileSdkVersion 22 buildToolsVersion "22.0.1" defaultConfig { applicationId "com.example.sampleapp" minSdkVersion 12 targetSdkVersion 22 versionCode 1 versionName "1.0" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } } dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) compile 'com.android.support:appcompat-v7:22.2.0' compile 'com.android.support:recyclerview-v7:22.2.0' compile 'com.jakewharton:butterknife:6.1.0' }
Any help would be greatly appreciated.
source share