0
我得到在Android工作室在我的V24 /價值觀v24.xml文件,該文件是在這裏4個錯誤:錯誤檢索父的項目:無資源發現在給定的名字相匹配
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="Base.TextAppearance.AppCompat.Widget.Button.Borderless.Colored" parent="android:TextAppearance.Material.Widget.Button.Borderless.Colored"/>
<style name="Base.TextAppearance.AppCompat.Widget.Button.Colored" parent="android:TextAppearance.Material.Widget.Button.Colored"/>
<style name="TextAppearance.AppCompat.Notification.Info.Media"/>
<style name="TextAppearance.AppCompat.Notification.Media"/>
<style name="TextAppearance.AppCompat.Notification.Time.Media"/>
<style name="TextAppearance.AppCompat.Notification.Title.Media"/>
這裏有四個錯誤:
Error:(3) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Borderless.Colored'.
Error:(4) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Colored'.
Error:(3) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Borderless.Colored'.
Error:(4) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Colored'.
不知道如何解決這個問題?這與我的targetSDKversion爲23有什麼關係?
很抱歉,但你的意思是導入設置?這是我可以在'文件'下找到的唯一選項。 – appyhour
該答案適用於Android Studio的較舊版本(2013),因此我無法找到該特定路徑。在'support'文件夾中有一個名爲appcompat-v7的文件夾,它有一些不同版本的appcompat文件,從18.0.0到26.0.0(這些版本中的每一個都有一個不同的'appcompact'文件在他們)。你知道我特別應該添加哪一個嗎? – appyhour