2014-11-07 9 views
5

सबकुछ मैं सिंक करने का प्रयास करता हूं यह त्रुटि आती है। मैं एसडीके 21 का उपयोग कर रहा हूं और मेरे पास सभी अपडेट इंस्टॉल हैं। मैंने Value.xml को हटाने, ग्रैडल की सफाई करने, इसे समन्वयित करने और एसडीके संस्करण को बदलने की कोशिश करने का प्रयास किया। और अभी भी यह आ गया है।कोई संसाधन नहीं मिला जो दिए गए नाम से मेल खाता है: attr 'android: actionModeShareDrawable'

यहाँ

क्या चला जाता है गलत

C:\Users\User\AndroidStudioProjects\MyApplication\app\build\intermediates\exploded-aar\com.android.support\appcompat-v7\21.0.0\res\values-v11\values.xml 
Error:(36, 21) No resource found that matches the given name: attr 'android:actionModeShareDrawable'. 
Error:(36, 21) No resource found that matches the given name: attr 'android:actionModeShareDrawable'. 
Error:(36, 21) No resource found that matches the given name: attr 'android:actionModeShareDrawable'. 
Error:(36, 21) No resource found that matches the given name: attr 'android:actionModeShareDrawable'. 
    Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material'. 
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Body1'. 
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Body2'. 
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Button'. 
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Caption'. 
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Display1'. 
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Display2'. 
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Display3'. 

आप परियोजना मुझे एक संदेश देने को देखने के लिए चाहते हैं, तो है। मैं एंड्रॉइड स्टूडियो में वास्तव में नया हूं। मैंने ऐप को भी पुनर्निर्माण किया।

+1

शायद नकल: http://stackoverflow.com/questions/24462128/error-retrieving-parent-for-item -android-studio –

+0

http://stackoverflow.com/questions/26431676/appcompat-v721-0-0-no-resource-found-that-matches-the-given-name-attr-andro –

उत्तर

5

आपको यह सुनिश्चित करने की ज़रूरत है कि आपके सभी मॉड्यूल जिनके पास समर्थन लाइब्रेरी है, निर्भरता के रूप में एसडीके को 21 तक सेट किया गया है। तो परियोजना संरचना पर जाएं और बाईं ओर सभी मॉड्यूल जांचें।

+2

क्या कोई अच्छा विवरण है सभी सभी समर्थन सामग्री और ग्रैडल और स्टूडियो से कैसे संबंधित हैं। वास्तव में यह बहुत गन्दा है! ऐसा लगता है कि एंड्रॉइड एक बड़ा हैक है। मुझे लगता है कि स्टूडियो को इसे स्वचालित रूप से अपडेट करना चाहिए, डेवलपर को इसे एक साथ फिट करने के लिए मैन्युअल रूप से क्यों बदलना चाहिए? – powder366

0

नवीनतम उपलब्ध एक के लिए compileSdkVersion & buildToolsVersion अपडेट करना मेरे लिए काम किया। ये सेटिंग्स मेरे लिए काम किया:

compileSdkVersion 26

buildToolsVersion '26 .0.1 '

संबंधित मुद्दे

 संबंधित मुद्दे