2015-12-16 42 views
0

我正在將現有應用程序移植到新安裝程序,並且幾乎所有工作都已完成,但是當我嘗試構建項目時,出現了一些錯誤debug/AndroidManifest.xml中的元素無法識別。下面是一些截圖:在AndroidStudio中編譯時無法識別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> 
+0

當您將鼠標放在該錯誤中時,顯示的錯誤是什麼? – Sree

+0

顯示您的style.xml文件 –

+0

我認爲可能會在建築物上發生不良事件,請嘗試使緩存無效並重新啓動您的工作室。 – Sree

回答

1

你提到了android:主題爲「AppBaseTheme」但我沒有看到你style.xml文件風格。