【问题标题】:No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Colored找不到与给定名称匹配的资源 'android:TextAppearance.Material.Widget.Button.Colored
【发布时间】:2017-08-26 22:53:27
【问题描述】:

当我尝试在 Android Studio 中启动我的应用时,它会产生 3 个如下错误:

错误:(3) 检索项目的父项时出错:未找到与给定名称“android:TextAppearance.Material.Widget.Button.Borderless.Colored”匹配的资源。

错误:(4) 检索项目的父项时出错:未找到与给定名称“android:TextAppearance.Material.Widget.Button.Colored”匹配的资源。

错误:任务 ':app:processDebugResources' 执行失败。

com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Games\AndroidSDK\build-tools\25.0.2\aapt.exe'' 完成非零退出值 1 Here is an image of what I see when I try to start the App

【问题讨论】:

  • 请显示 gradle 文件

标签: android android-gradle-plugin


【解决方案1】:

将您的 compileSdkVersion 设置为 24 或更高。现在,您的 compileSdkVersion 似乎低于 24,但您使用的一些资源(例如,来自 Android 支持库)需要 compileSdkVersion 为 24 或更高。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-10-27
    • 2016-09-26
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多