找不到与给定名称“android:TextAppearance.Material.Widget.Button.Borderless.Colored"匹配的资源 [英] No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Borderless.Colored'

查看:51
本文介绍了找不到与给定名称“android:TextAppearance.Material.Widget.Button.Borderless.Colored"匹配的资源的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在尝试运行 react-native run-android 时遇到此错误:

I'm getting this error when trying to run react-native run-android:

com.android.ide.common.process.ProcessException: 执行 aapt 失败

com.android.ide.common.process.ProcessException: Failed to execute aapt

我也得到:

AAPT:检索项目的父项时出错:找不到与给定名称android:TextAppearance.Material.Widget.Button.Borderless.Colored"匹配的资源.

AAPT: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Borderless.Colored'.

我环顾了 StackOverflow,我看到有些人遇到了类似的问题,他们通过确保他们的构建版本也与 build.grade 文件中的 appcompat 版本匹配来解决它.但是,这似乎不起作用.

I've looked around StackOverflow and I have seen some people get similar issues and they solved it with making sure their build version which also matches the appcompat version in the build.grade file. However, this doesn't seem to be working.

这是我所拥有的:

compileSdkVersion 23
buildToolsVersion "23.0.1"

defaultConfig {
    ...
    minSdkVersion 16
    targetSdkVersion 23
    ...
}
...
compile "com.android.support:appcompat-v7:23.0.1"   

任何建议将不胜感激!

推荐答案

我遇到了同样的问题,并通过将构建工具版本更改为 25.0.0 并将目标版本更改为 25 来解决它.我使用的是 Android studio 2.3.

I had the same issue and got it solved by changing the build tool version to 25.0.0 and target version to 25. I am using Android studio 2.3.

希望能帮到你.

这篇关于找不到与给定名称“android:TextAppearance.Material.Widget.Button.Borderless.Colored"匹配的资源的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆