gpt4 book ai didi

java - 错误: No resource found that matches the given name (at 'theme' with value '@style/Theme.Material.Light.DarkActionBar' )

转载 作者:行者123 更新时间:2023-12-02 04:52:09 24 4
gpt4 key购买 nike

您好,我正在尝试使用它们“Theme.Material.Light.DarkActionBar”

我更新了我的SDK和ADT,我有最新的 Lollipop 手机。我正在使用 android 5.1 编译它。

我将 list 更改为

    android:minSdkVersion="22"
android:targetSdkVersion="22"

在我的 list 中我放入:

 android:theme="@style/Theme.Material.Light.DarkActionBar" 

但是我收到错误消息:Error: 找不到与给定名称匹配的资源(在“主题”处,值为“@style/Theme.Material.Light.DarkActionBar”)。

我该如何解决这个问题,以便我可以在我的应用程序中使用这个主题。 ps 我正在使用 Eclipse。

最佳答案

你应该改变:

android:theme="@style/Theme.Material.Light.DarkActionBar" 

android:theme="@android:style/Theme.Material.Light.DarkActionBar"

因为它是 Android 资源,而不是您项目的资源。

关于java - 错误: No resource found that matches the given name (at 'theme' with value '@style/Theme.Material.Light.DarkActionBar' ),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29130145/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com