在AndroidStudio中构建期间无法识别debug / AndroidManifest.xml元素

时间:2015-12-16 04:28:08

标签: android android-studio gradle

我正在努力将现有的应用程序移植到新的设置中,我几乎所有工作都正常,但是当我尝试构建项目时,我得到的错误是debug / AndroidManifest.xml中的某些元素无法识别。以下是一些截图:

enter image description here

enter image description here

知道为什么会发生这种情况以及如何解决这个问题?

这是我的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>

1 个答案:

答案 0 :(得分:1)

你提到了android:theme为&#34; AppBaseTheme&#34;但是我没有在你的style.xml文件中看到那种风格。

相关问题