HOME > Mobile > Mobile Forum > Android ติดปัญหา error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
Android ติดปัญหา error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
File->Import (android-sdk\extras\android\support\v7). Choose "appcompat"
Project-> properties->Android. In the section library "Add" and choose "appCompat"
Code (Android-Java)
[2558-05-03 21:46:48 - ElectricCPE] C:\Users\wanniga\Desktop\Project\ควบคุมเครื่องใช้ไฟฟ้าAndroidคิดค่าไฟ\ElectricCPE\res\values\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
[2558-05-03 21:46:48 - ElectricCPE]
[2558-05-03 21:46:48 - ElectricCPE] C:\Users\wanniga\Desktop\Project\ควบคุมเครื่องใช้ไฟฟ้าAndroidคิดค่าไฟ\ElectricCPE\res\values-v11\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
[2558-05-03 21:46:48 - ElectricCPE]
[2558-05-03 21:46:48 - ElectricCPE] C:\Users\wanniga\Desktop\Project\ควบคุมเครื่องใช้ไฟฟ้าAndroidคิดค่าไฟ\ElectricCPE\res\values-v14\styles.xml:8: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'.
[2558-05-03 21:46:48 - ElectricCPE]
[2558-05-03 21:46:52 - ElectricCPE] C:\Users\wanniga\Desktop\Project\ควบคุมเครื่องใช้ไฟฟ้าAndroidคิดค่าไฟ\ElectricCPE\res\values\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
[2558-05-03 21:46:52 - ElectricCPE]
[2558-05-03 21:46:52 - ElectricCPE] C:\Users\wanniga\Desktop\Project\ควบคุมเครื่องใช้ไฟฟ้าAndroidคิดค่าไฟ\ElectricCPE\res\values-v11\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
[2558-05-03 21:46:52 - ElectricCPE]
[2558-05-03 21:46:52 - ElectricCPE] C:\Users\wanniga\Desktop\Project\ควบคุมเครื่องใช้ไฟฟ้าAndroidคิดค่าไฟ\ElectricCPE\res\values-v14\styles.xml:8: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'.
[2558-05-03 21:46:52 - ElectricCPE]
[2558-05-03 21:53:37 - ElectricCPE] C:\Users\wanniga\Desktop\Project\ควบคุมเครื่องใช้ไฟฟ้าAndroidคิดค่าไฟ\ElectricCPE\res\values\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
[2558-05-03 21:53:37 - ElectricCPE]
[2558-05-03 21:53:37 - ElectricCPE] C:\Users\wanniga\Desktop\Project\ควบคุมเครื่องใช้ไฟฟ้าAndroidคิดค่าไฟ\ElectricCPE\res\values-v11\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
[2558-05-03 21:53:37 - ElectricCPE]
[2558-05-03 21:53:37 - ElectricCPE] C:\Users\wanniga\Desktop\Project\ควบคุมเครื่องใช้ไฟฟ้าAndroidคิดค่าไฟ\ElectricCPE\res\values-v14\styles.xml:8: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'.
[2558-05-03 21:53:37 - ElectricCPE]
[2558-05-04 14:39:15 - android-support-v7-appcompat] C:\Users\wanniga\Desktop\Project\adt-bundle-windows-x86_64-20140702\sdk\extras\android\support\v7\appcompat\res\values-v21\themes_base.xml:85: error: Error: No resource found that matches the given name: attr 'android:colorPrimary'.
[2558-05-04 14:39:15 - android-support-v7-appcompat]
[2558-05-04 14:39:15 - android-support-v7-appcompat] C:\Users\wanniga\Desktop\Project\adt-bundle-windows-x86_64-20140702\sdk\extras\android\support\v7\appcompat\res\values-v21\themes_base.xml:86: error: Error: No resource found that matches the given name: attr 'android:colorPrimaryDark'.
[2558-05-04 14:39:15 - android-support-v7-appcompat]
[2558-05-04 14:39:15 - android-support-v7-appcompat] C:\Users\wanniga\Desktop\Project\adt-bundle-windows-x86_64-20140702\sdk\extras\android\support\v7\appcompat\res\values-v21\themes_base.xml:136: error: Error: No resource found that matches the given name: attr 'android:colorAccent'.
[2558-05-04 14:39:15 - android-support-v7-appcompat]
[2558-05-04 14:39:15 - android-support-v7-appcompat] C:\Users\wanniga\Desktop\Project\adt-bundle-windows-x86_64-20140702\sdk\extras\android\support\v7\appcompat\res\values-v21\themes_base.xml:140: error: Error: No resource found that matches the given name: attr 'android:colorButtonNormal'.
[2558-05-04 14:39:15 - android-support-v7-appcompat]
[2558-05-04 14:39:15 - android-support-v7-appcompat] C:\Users\wanniga\Desktop\Project\adt-bundle-windows-x86_64-20140702\sdk\extras\android\support\v7\appcompat\res\values-v21\themes_base.xml:138: error: Error: No resource found that matches the given name: attr 'android:colorControlActivated'.
[2558-05-04 14:39:15 - android-support-v7-appcompat]
[2558-05-04 14:39:15 - android-support-v7-appcompat] C:\Users\wanniga\Desktop\Project\adt-bundle-windows-x86_64-20140702\sdk\extras\android\support\v7\appcompat\res\values-v21\themes_base.xml:139: error: Error: No resource found that matches the given name: attr 'android:colorControlHighlight'.
[2558-05-04 14:39:15 - android-support-v7-appcompat]
[2558-05-04 14:39:15 - android-support-v7-appcompat] C:\Users\wanniga\Desktop\Project\adt-bundle-windows-x86_64-20140702\sdk\extras\android\support\v7\appcompat\res\values-v21\themes_base.xml:137: error: Error: No resource found that matches the given name: attr 'android:colorControlNormal'.
[2558-05-04 14:39:15 - android-support-v7-appcompat]
[2558-05-04 14:39:15 - android-support-v7-appcompat] C:\Users\wanniga\Desktop\Project\adt-bundle-windows-x86_64-20140702\sdk\extras\android\support\v7\appcompat\res\values-v21\themes_base.xml:134: error: Error: No resource found that matches the given name: attr 'android:colorPrimary'.
[2558-05-04 14:39:15 - android-support-v7-appcompat]
[2558-05-04 14:39:15 - android-support-v7-appcompat] C:\Users\wanniga\Desktop\Project\adt-bundle-windows-x86_64-20140702\sdk\extras\android\support\v7\appcompat\res\values-v21\themes_base.xml:135: error: Error: No resource found that matches the given name: attr 'android:colorPrimaryDark'.
[2558-05-04 14:39:15 - android-support-v7-appcompat]
[2558-05-04 14:39:15 - android-support-v7-appcompat] C:\Users\wanniga\Desktop\Project\adt-bundle-windows-x86_64-20140702\sdk\extras\android\support\v7\appcompat\res\values-v21\themes_base.xml:144: error: Error: No resource found that matches the given name: attr 'android:windowElevation'.
[2558-05-04 14:39:15 - android-support-v7-appcompat]
[2558-05-04 14:39:15 - android-support-v7-appcompat] C:\Users\wanniga\Desktop\Project\adt-bundle-windows-x86_64-20140702\sdk\extras\android\support\v7\appcompat\res\values-v21\themes_base.xml:148: error: Error: No resource found that matches the given name: attr 'android:windowElevation'.