如何在平板电脑上运行应用程序到智能手机?
问题描述:
我对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'.
有谁知道在处理这个问题的任何材料?从已经非常感谢你。
答
只删除\res\values-v21\
文件夹。当您的目标API级别为19时,您将不需要它。(材料设计主题需要API级别21)
嗨迈克尔,我仍然有问题。 – juanchiy2k
您需要“重建”该项目。 (菜单:生成>重建) –