Android 如何将在平板电脑中运行的应用程序运行到智能手机?
我对安卓非常陌生,我被分配了一个在平板电脑上工作的系统项目,我的想法是它也可以在智能手机上工作。据我所见,它是用API 13开发的,我会把它带到API 19,但给了我一些错误:Android 如何将在平板电脑中运行的应用程序运行到智能手机?,android,android-studio,gradle,Android,Android Studio,Gradle,我对安卓非常陌生,我被分配了一个在平板电脑上工作的系统项目,我的想法是它也可以在智能手机上工作。据我所见,它是用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 ma
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)嗨,Michael,我仍然有这个问题。你需要“重建”项目。(菜单:构建>重建)