迁移到 Android Studio 时出现错误

Migrating to Android Studio with errors

我对 Android Studio 有疑问。在听说不久的将来 google 将终止对 Eclipse 的支持后,我决定迁移到 Android Studio,完成后,我导入了 Eclipse 的项目,但出现了我不明白的错误:

Error:(3) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Inverse'.
Error:(18) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Button.Colored'.
Error:Execution failed for task ':app:processDebugResources'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'D:\Android-sdk\build-tools.0.2\aapt.exe'' finished with non-zero exit value 1

这是我的Build.gradle

apply plugin: 'com.android.application'

android {
    compileSdkVersion 22
    buildToolsVersion "23.0.2"

    defaultConfig {
        applicationId "morisson.rzucpalenie"
        minSdkVersion 14
        targetSdkVersion 22
    }

    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
        }
    }
}

dependencies {
    compile 'com.google.android.gms:play-services:+'
    compile 'com.android.support:appcompat-v7:22.2.1'
}

这是因为您正在使用 buildTools 23.0.2 构建,但您的 compileSdkVersion 是 22。compileSdkVersion 应该是 23,您的 targetSdkVersion 应该是 23。