gpt4 book ai didi

android - 使用mikepenz/MaterialDrawer库解决依赖项时出错

转载 作者:行者123 更新时间:2023-12-03 05:15:25 25 4
gpt4 key购买 nike

使用该库时出现以下错误:

C:\ASP\example\app\build\intermediates\exploded-aar\com.android.support\appcompat-v7\23.0.0\res\values-v23\values-v23.xml Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Inverse'. Error:(2) 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 'C:\Users\Aayush Karwatkar\AppData\Local\Android\sdk1\build-tools\23.0.0\aapt.exe'' finished with non-zero exit value 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
}

}

最佳答案

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

关于android - 使用mikepenz/MaterialDrawer库解决依赖项时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32402939/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com