我刚从eclipse导入我的项目到Android Studio,我收到了这个错误。
错误:
Styles.xml
<resources>
<style name="AppTheme.Base" parent="Theme.AppCompat.Light.NoActionBar">
<item name="colorAccent">@color/black</item>
<item name="android:windowNoTitle">true</item>
<item name="windowActionBar">false</item>
</style>
<style name="AppTheme" parent="AppTheme.Base"></style>
</resources>
styles_copy.xml
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="AppTheme" parent="AppTheme.Base"/>
<style name="AppTheme.Base" parent="Theme.AppCompat.Light.NoActionBar">
<item name="colorPrimary">@color/ColorPrimary</item>
<item name="colorPrimaryDark">@color/ColorPrimaryDark</item>
<item name="android:windowNoTitle">true</item>
<item name="windowActionBar">false</item>
</style>
</resources>
的themes.xml
foreignList.stream().filter(c -> c.getForeignBureauInquiryDocSlot() != null);
Collections.sort(foreignList, ((DocumentSorting o1, DocumentSorting o2) -> o1.getForeignBureauInquiryDocSlot() - o2.getForeignBureauInquiryDocSlot()));
以下是我的项目中的值文件夹结构的图像。
请帮助解决此问题,任何帮助将不胜感激。
项目中的文件层次结构:
答案 0 :(得分:0)
Looks like the duplicate resource is AppTheme
. You implement it in
styles.xml:
<style name="AppTheme"parent="Theme.AppCompat.Light.NoActionBar">
styles-copy.xml
<style name="AppTheme" parent="AppTheme.Base"></style>
and themes.xml
<style name="AppTheme" parent="AppTheme.Base"/>
Why you need to define one item three times? Maybe you can merge all your definitions into one?