我正在尝试在我的项目中实现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.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'
}
这是我的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.
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句