android 2.3.3不识别intellij中supportlibrary的样式

时间:2015-06-24 04:07:02

标签: android intellij-idea android-actionbar android-support-library

我正在尝试使用android 2.3.3 .i中的操作栏。使用this linkintellij中添加支持库。它没有任何编译错误,但在运行后它无法识别任何父主题。例如,这是

之一
D:\freetime\codes\appcompat\res\values-v21\styles_base_text.xml
Error:(62, -1) android-apt-compiler: [appcompat] D:\freetime\codes\appcompat\res\values-v21\styles_base_text.xml:62: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Button'.
Error:(20, -1) android-apt-compiler: [appcompat] D:\freetime\codes\appcompat\res\values-v21\styles_base_text.xml:20: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material'.
Error:(22, -1) android-apt-compiler: [appcompat] D:\freetime\codes\appcompat\res\values-v21\styles_base_text.xml:22: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Display4'.
Error:(24, -1) android-apt-compiler: [appcompat] D:\freetime\codes\appcompat\res\values-v21\styles_base_text.xml:24: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Display3'.
Error:(26, -1) android-apt-compiler: [appcompat] D:\freetime\codes\appcompat\res\values-v21\styles_base_text.xml:26: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Display2'.
Error:(28, -1) android-apt-compiler: [appcompat] D:\freetime\codes\appcompat\res\values-v21\styles_base_text.xml:28: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Display1'.
Error:(30, -1) android-apt-compiler: [appcompat] D:\freetime\codes\appcompat\res\values-v21\styles_base_text.xml:30: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Headline'.
Error:(32, -1) android-apt-compiler: [appcompat] D:\freetime\codes\appcompat\res\values-v21\styles_base_text.xml:32: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Title'.
Error:(34, -1) android-apt-compiler: [appcompat] D:\freetime\codes\appcompat\res\values-v21\styles_base_text.xml:34: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Subhead'.
Error:(36, -1) android-apt-compiler: [appcompat] D:\freetime\codes\appcompat\res\values-v21\styles_base_text.xml:36: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Body2'.
Error:(38, -1) android-apt-compiler: [appcompat] D:\freetime\codes\appcompat\res\values-v21\styles_base_text.xml:38: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Body1'.
Error:(40, -1) android-apt-compiler: [appcompat] D:\freetime\codes\appcompat\res\values-v21\styles_base_text.xml:40: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Caption'.
Error:(42, -1) android-apt-compiler: [appcompat] D:\freetime\codes\appcompat\res\values-v21\styles_base_text.xml:42: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Menu'.
Error:(60, -1) android-apt-compiler: [appcompat] D:\freetime\codes\appcompat\res\values-v21\styles_base_text.xml:60: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Button'.
Error:(46, -1) android-apt-compiler: [appcompat] D:\freetime\codes\appcompat\res\values-v21\styles_base_text.xml:46: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Inverse'.
Error:(48, -1) android-apt-compiler: [appcompat] D:\freetime\codes\appcompat\res\values-v21\styles_base_text.xml:48: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Large'.
Error:(50, -1) android-apt-compiler: [appcompat] D:\freetime\codes\appcompat\res\values-v21\styles_base_text.xml:50: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Large.Inverse'.
Error:(52, -1) android-apt-compiler: [appcompat] D:\freetime\codes\appcompat\res\values-v21\styles_base_text.xml:52: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Medium'.
Error:(54, -1) android-apt-compiler: [appcompat] D:\freetime\codes\appcompat\res\values-v21\styles_base_text.xml:54: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Medium.Inverse'.
Error:(56, -1) android-apt-compiler: [appcompat] D:\freetime\codes\appcompat\res\values-v21\styles_base_text.xml:56: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Small'.
Error:(58, -1) android-apt-compiler: [appcompat] D:\freetime\codes\appcompat\res\values-v21\styles_base_text.xml:58: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Small.Inverse'.

我很困惑,我有这个问题很长一段时间,无法解决它。我该怎么办?

1 个答案:

答案 0 :(得分:0)

将Project Build目标设置为API级别21.然后重建项目。