gpt4 book ai didi

android - Android Design Support 库的 Eclipse 错误

转载 作者:塔克拉玛干 更新时间:2023-11-03 00:03:22 26 4
gpt4 key购买 nike

我正在尝试将库“android.support.design”导入到 Eclipse 中,但在导入之后出现了一些错误:

/design/res/values/styles.xml:21: error: Error: No resource found that matches the given name: attr 'backgroundTint'.
/design/res/values/styles.xml:23: error: Error: No resource found that matches the given name: attr 'elevation'.
/design/res/values/styles.xml:34: error: Error: No resource found that matches the given name: attr 'elevation'.
/design/res/values/styles.xml:56: error: Error retrieving parent for item: No resource found that matches the given name 'TextAppearance.AppCompat.Button'.
/design/res/values/styles.xml:59: error: Error: No resource found that matches the given name: attr 'textAllCaps'.
/design/res/values/styles.xml:67: error: Error retrieving parent for item: No resource found that matches the given name 'TextAppearance.AppCompat.Caption'.
/design/res/values/styles.xml:71: error: Error retrieving parent for item: No resource found that matches the given name 'TextAppearance.AppCompat.Caption'.
/design/res/values/styles.xml:80: error: Error retrieving parent for item: No resource found that matches the given name 'TextAppearance.AppCompat.Button'.
/design/res/values/styles.xml:91: error: Error: No resource found that matches the given name: attr 'elevation'.
/design/res/values/styles.xml:103: error: Error: No resource found that matches the given name: attr 'elevation'.
/design/res/values/styles.xml:111: error: Error retrieving parent for item: No resource found that matches the given name 'TextAppearance.AppCompat.Display1'.
/design/res/values/styles.xml:21: error: Error: No resource found that matches the given name: attr 'backgroundTint'.
/design/res/values/styles.xml:23: error: Error: No resource found that matches the given name: attr 'elevation'.
/design/res/values/styles.xml:34: error: Error: No resource found that matches the given name: attr 'elevation'.
/design/res/values/styles.xml:56: error: Error retrieving parent for item: No resource found that matches the given name 'TextAppearance.AppCompat.Button'.
/design/res/values/styles.xml:59: error: Error: No resource found that matches the given name: attr 'textAllCaps'.
/design/res/values/styles.xml:67: error: Error retrieving parent for item: No resource found that matches the given name 'TextAppearance.AppCompat.Caption'.
/design/res/values/styles.xml:71: error: Error retrieving parent for item: No resource found that matches the given name 'TextAppearance.AppCompat.Caption'.
/design/res/values/styles.xml:80: error: Error retrieving parent for item: No resource found that matches the given name 'TextAppearance.AppCompat.Button'.
/design/res/values/styles.xml:91: error: Error: No resource found that matches the given name: attr 'elevation'.
/design/res/values/styles.xml:103: error: Error: No resource found that matches the given name: attr 'elevation'.
/design/res/values/styles.xml:111: error: Error retrieving parent for item: No resource found that matches the given name 'TextAppearance.AppCompat.Display1'.

我该如何解决?谢谢。

最佳答案

根据 Android 设计支持库的 Android 开发者博客,支持 v4 和 AppCompat 支持库是构 build 计支持库的依赖项。 http://android-developers.blogspot.com/2015/05/android-design-support-library.html

所以在 Eclipse 中,右键单击 android 支持设计库项目 -> 属性 -> Android,转到底部的库部分,然后单击添加...将您的 AppCompat 库添加到项目中。

关于android - Android Design Support 库的 Eclipse 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30545578/

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