【问题标题】:Error in resolving dependecies while using mikepenz/MaterialDrawer library使用 mikepenz/MaterialDrawer 库时解决依赖项时出错
【发布时间】:2015-11-30 21:36:37
【问题描述】:

我在使用库时遇到以下错误:

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
}

}

【问题讨论】:

    标签: android gradle materialdrawer


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-12-05
      • 2016-09-14
      • 2015-10-12
      • 1970-01-01
      • 2020-09-05
      • 2020-10-04
      • 1970-01-01
      • 2022-11-09
      相关资源
      最近更新 更多