且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

对于项目出错检索父:没有资源的发现,给定的名称匹配“的Andr​​oid版本:Theme.Material”

更新时间:2021-10-16 07:23:23

请按照下列步骤
1.首先确定你的资源新的XML文件/文件夹值名称(color.xml)。
2.然后定义您的自定义颜色。

Follow these steps 1. first of all define a new xml file in your res/values folder name(color.xml). 2. then define your custom color as.

<resources>
<color name="primary">#03f</color>
</resources>

问题是,你的主题提供了一个场所来定制,但它不知道@彩色/初级这个事情。

The problem is that your theme has provided a place to customize but it does not know @color/primary this thing.

现在再次尝试运行项目。

now try again to run the project.

记住设置安卓的minSdkVersion =L机器人:targetSdkVersion =L