Java 在android中实现支持库v7中的样式
我试图在我的项目中实现支持库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
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自动完成系统!