0

使用库时出现以下错误:

C:\ASP\example\app\build\intermediates\exploded-aar\com.android.support\appcompat-v7\23.0.0\res\values-v23\values-v23.xml 错误:(2) 检索父级时出错对于项目:未找到与给定名称“android:TextAppearance.Material.Widget.Button.Inverse”匹配的资源。错误:(2) 检索项目的父项时出错:找不到与给定名称“android:Widget.Material.Button.Colored”匹配的资源。错误:任务“:app:processDebugResources”执行失败。com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Users\Aayush Karwatkar\AppData\Local\Android\sdk1\build-tools\23.0.0\ aapt.exe'' 以非零退出值 1 结束

Build.Gradle 文件是这样的:

apply plugin: 'com.android.application'

android {
    compileSdkVersion 21
    buildToolsVersion "23.0.0"

defaultConfig {
    applicationId "com.aayush.com.example"
    minSdkVersion 14
    targetSdkVersion 21
    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:23.0.0'

//Core card library
compile 'com.github.gabrielemariotti.cards:cardslib-core:2.1.0'
//Optional for built-in cards
compile 'com.github.gabrielemariotti.cards:cardslib-cards:2.1.0'
//Optional for RecyclerView
compile 'com.github.gabrielemariotti.cards:cardslib-recyclerview:2.1.0'

compile('com.mikepenz:materialdrawer:4.0.5@aar') {
    transitive = true
}

}
4

1 回答 1

1

compileSdkVersion您可以通过将您的更改为 来修复此错误23

于 2015-09-04T16:50:16.873 回答