android studio :com.android.support:appcompat-v7:21.+ 报错

android studio :com.android.support:appcompat-v7:21.+ 报错:

 

 

在project——>app——>build.gradle修改:

 

android studio :com.android.support:appcompat-v7:21.+ 报错_第1张图片

 

apply plugin: 'com.android.application'

android {
    compileSdkVersion 22
    buildToolsVersion "22.0.1"

    defaultConfig {
        applicationId "com.example.ricky.myapplication"
        minSdkVersion 15
        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.1.1'
}

 

 

android studio :com.android.support:appcompat-v7:21.+ 报错_第2张图片

 

打开sdk manager

下面2张图和上面1张图对应:

 

android studio :com.android.support:appcompat-v7:21.+ 报错_第3张图片

 

 

 

 

 

 

android studio :com.android.support:appcompat-v7:21.+ 报错_第4张图片

 

你可能感兴趣的:(android,Studio)