我正在尝试将现有的应用程序移植到新的设置,并且几乎所有工作都可以进行,但是当我尝试构建项目时,出现错误,指出debug / AndroidManifest.xml中的某些元素无法识别。以下是一些屏幕截图:
知道为什么会发生这种情况以及如何解决吗?
这是我的styles.xml
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="CustomTheme" parent="android:Theme.Light">
<item name="android:windowBackground">@color/white</item>
<item name="android:colorBackground">@color/white</item>
</style>
<style name="home_page_buttons">
<item name="android:layout_marginLeft">10dp</item>
<item name="android:layout_marginRight">10dp</item>
<item name="android:textStyle">bold</item>
<item name="android:color">@color/white</item>
<item name="android:layout_height">45dip</item>
<!-- <item name="android:background">@drawable/white_button</item> -->
</style>
<style name="home_page_two_buttons">
<item name="android:textStyle">bold</item>
<item name="android:color">@color/white</item>
<item name="android:layout_height">45dip</item>
<!-- <item name="android:background">@drawable/white_button</item> -->
</style>
<!-- Information Pages -->
<style name="instruction_text">
<item name="android:padding">10px</item>
<item name="android:textSize">16sp</item>
</style>
<style name="instruction_quote">
<item name="android:padding">10px</item>
<item name="android:textSize">12sp</item>
</style>
<style name="instruction_heading">
<item name="android:padding">10px</item>
<item name="android:textSize">17sp</item>
<item name="android:textColor">@color/light_best_blue</item>
</style>
</resources>
最佳答案
您将android:theme称为“AppBaseTheme”,但在style.xml文件中看不到该样式。