Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/229.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
android 2.3.3无法识别intellij中supportlibrary中的样式_Android_Intellij Idea_Android Actionbar_Android Support Library - Fatal编程技术网

android 2.3.3无法识别intellij中supportlibrary中的样式

android 2.3.3无法识别intellij中supportlibrary中的样式,android,intellij-idea,android-actionbar,android-support-library,Android,Intellij Idea,Android Actionbar,Android Support Library,我正在尝试使用android 2.3.3中的操作栏。我在intellij中添加支持库。它没有任何编译错误,但在运行后,它无法识别任何父主题。例如,这是一个 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

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

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'.

我很困惑,我有这个问题很长时间了,不能解决它。我该怎么办

将项目构建目标设置为API级别21。然后重建您的项目。

在v2.3 emulator或更高版本中测试此应用程序?我想在2.3.3之前的android中执行我的应用程序。更改生成目标会忽略此兼容性吗?您有最新的生成目标吗?抱歉,我是android新手!构建目标是否与项目结构中的项目语言级别相同?要支持values-v21,构建目标应为5.0。进入文件->平台设置->sdk下的“项目结构”,您可以看到android sdk路径、类路径和构建目标。首先使用sdk管理器用最新的构建目标更新sdk。好的,我检查过了。我有最新版本的sdk,我按照你说的做了。但是它仍然有相同的错误