【问题标题】:When I run this project these errors show up, how to solve them? [duplicate]当我运行这个项目时,这些错误出现了,如何解决它们? [复制]
【发布时间】:2018-08-16 15:53:40
【问题描述】:

为什么会出现这些错误?

done/app/build/intermediates/res/merged/debug/values-v28/values-v28.xml 

Error: (7, 41) No resource found that matches the given name (at 'dialogCornerRadius' with value '?android:attr/dialogCornerRadius'). 

Error: (7, 41) No resource found that matches the given name (at 'dialogCornerRadius' with value '?android:attr/dialogCornerRadius'). 

Error: Execution failed for task ':app:processDebugResources'. com.android.ide.common.process.ProcessException: Failed to execute aapt

【问题讨论】:

  • buildToolsVersion添加你的gradle。
  • 请提供您正在尝试执行的操作的详细信息以及导致此错误的代码
  • 上次代码正常工作,但现在报错
  • 更新你的 buildTools
  • 您最近是否更新了构建工具和平台?这似乎与昨晚发布的 Android P 开发者预览版有关。

标签: android


【解决方案1】:

这些与构建版本问题 27.0.3 有关。在应用程序 gradle 中首先降低构建工具版本并删除 .gradle、.idea 和 gradle 文件夹并解决重建项目问题。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2021-09-15
    • 2021-11-16
    • 2011-09-16
    • 2022-10-15
    • 1970-01-01
    • 1970-01-01
    • 2011-09-04
    • 1970-01-01
    相关资源
    最近更新 更多