【发布时间】:2016-09-26 01:10:29
【问题描述】:
项目运行良好。我尝试添加一个片段,但出现以下错误。
检索项目的父项时出错:找不到与给定名称“android:TextAppearance.Material.Widget.Button.Inverse”匹配的资源。 检索项目的父项时出错:找不到与给定名称“android:Widget.Material.Button.Colored”匹配的资源。
错误:任务 ':app:processDebugResources' 执行失败。 com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Users\Th\AndroidSdk\build-tools\21.1.1\aapt.exe'' 完成非零退出值 1
我没有改变任何东西。
分级:
compileSdkVersion 21
buildToolsVersion "21.1.1"
defaultConfig {
applicationId "com.example.app.app"
minSdkVersion 14
targetSdkVersion 21
multiDexEnabled = true
}
请指导我。 谢谢。
【问题讨论】:
-
你更新 Android Studio 了吗?
-
我早就更新过了。这是 2.1.1
-
试试这个:
compileSdkVersion 23,buildToolsVersion "23.0.2",targetSdkVersion 23,compile 'com.android.support:appcompat-v7:23.1.1',compile 'com.android.support:design:23.1.1'。 -
因此,默认情况下,在新版本中,当您添加新活动或片段时,它使用 API 级别 23。
-
如果您已经更新到 23 则可以。