Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/218.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
Java 在android中实现支持库v7中的样式_Java_Android_Android Studio_Gradle_Android Support Library - Fatal编程技术网

Java 在android中实现支持库v7中的样式

Java 在android中实现支持库v7中的样式,java,android,android-studio,gradle,android-support-library,Java,Android,Android Studio,Gradle,Android Support Library,我试图在我的项目中实现支持库v7,但在与之捆绑的样式方面遇到了问题 Error:(2) Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar.'. 我已经在build.gradle中包含了com.android.support:appcompat-v7:23.1.1,但它没有帮助 这是我的build.grad

我试图在我的项目中实现支持库v7,但在与之捆绑的样式方面遇到了问题

Error:(2) Error retrieving parent for item: 

No resource found that matches the given name

 'Theme.AppCompat.Light.DarkActionBar.'.
我已经在build.gradle中包含了com.android.support:appcompat-v7:23.1.1,但它没有帮助

这是我的build.gradle依赖项

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    testCompile 'junit:junit:4.12'
    compile 'com.android.support:design:23.1.0'
    compile 'com.android.support:recyclerview-v7:23.1.0'
    compile 'com.android.support:support-annotations:+'
    compile 'com.android.support:appcompat-v7:23.1.1'
} 
下面是导致错误的my styles.xml

<resources>
   <style name="AppBaseTheme" parent="android:Theme.Light"> </style>
    <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar."></style>
 <!-- erorr here -->
</resources>


我正在使用Android Studio 1.4和buildToolsVersion'23.0.2'。

您的风格中有一个输入错误删除点。

Theme.AppCompat.Light.DarkActionBar
而不是

Theme.AppCompat.Light.DarkActionBar.

非常感谢。看起来很有效。该死的Android Studio自动完成系统!