迁移到Android Studio时出错

迁移到Android Studio时出错,android,eclipse,migration,Android,Eclipse,Migration,我对Android Studio有问题。在我听说谷歌将在不久的将来终止对Eclipse的支持后,我决定迁移到Android Studio,在我完成迁移后,我导入了我的Eclipse项目,我发现了一些我不理解的错误: Error:(3) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Inver

我对Android Studio有问题。在我听说谷歌将在不久的将来终止对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\23.0.2\aapt.exe'' finished with non-zero exit value 1
这是我的身材,格雷德尔

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进行构建,但您的CompileSDK版本是22。compileSdkVersion应该是23,而targetSdkVersion应该是23。

我更改了它,但编译'com.android.support:appcompat-v7:22.2.1'时出现错误。您需要更改它们以使用23个版本,因此23.1.1