2016-03-01 254 views
0

我對Android非常陌生,並且我被分配了一個在平板電腦上工作的系統項目,並且這個想法也適用於智能手機。從我能看到的,它是用API 13開發的,我會帶它去API 19,但給我一些錯誤:如何在平板電腦上運行應用程序到智能手機?

C:\Projects\TestAndroid\app\build\intermediates\res\merged\debug\values-v21\values-v21.xml 
Error:(13) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Inverse'. 
Error:(15) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Large.Inverse'. 
Error:(21) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Medium.Inverse'. 
Error:(206) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ProgressBar'. 
Error:(208) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ProgressBar.Horizontal'. 
Error:(216) Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Material'. 
Error:(223) Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Material.Light'. 

C:\Projects\TestAndroid\app\build\intermediates\exploded-aar\com.android.support\appcompat-v7\23.0.0\res\values-v21\values-v21.xml 
Error:(82, 5) No resource found that matches the given name: attr 'android:colorAccent'. 
Error:(82, 5) No resource found that matches the given name: attr 'android:colorButtonNormal'. 
Error:(82, 5) No resource found that matches the given name: attr 'android:colorControlActivated'. 
Error:(82, 5) No resource found that matches the given name: attr 'android:colorControlHighlight'. 

有誰知道在處理這個問題的任何材料?從已經非常感謝你。

回答

0

只刪除\res\values-v21\文件夾。當您的目標API級別爲19時,您將不需要它。(材料設計主題需要API級別21)

+0

嗨邁克爾,我仍然有問題。 – juanchiy2k

+0

您需要「重建」該項目。 (菜單:生成>重建) –

相關問題