2016-10-20 10 views
5

Screen Shot #1 - Android Studio Project Gradle Build Viewएंड्रॉयड स्टूडियो - त्रुटि: com.android.support.constraint: बाधा-लेआउट: को हल करने में विफल 1.0.0-alpha1

Screen Shot #2 - Android Studio Project Gradle Sync View

"एंड्रॉयड स्टूडियो 2.2 विकास अनिवार्य पुस्तक" के माध्यम से जा रहे हैं और में अध्याय 3. सब कुछ ट्यूटोरियल के साथ निम्नलिखित ठीक जब तक मैं ऊपर उद्धृत ट्यूटोरियल कार्य के पूरा होने पर विकास अनिवार्य पुस्तक (अध्याय 3, पुस्तक में पृष्ठ 24) ही कहा में एक कार्य,

As we can see from the component tree hierarchy, the user interface layout consists of a layout parent with a single child in the form of a TextView object. If Android Studio has used a RelativeLayout manager for the project, the first step is to convert it to a ConstraintLayout. ConstraintLayout is a new and flexible layout manager that is used in most projects in this book. To achieve this conversion, right-click on the content_android_sample entry in the Component Tree and select the Convert RelativeLayout to ConstraintLayout menu option as shown below:

पूरा था (चैप में टी। विकास अनिवार्य पुस्तक के 3), एक त्रुटि पेश किया गया है कि ने कहा:

त्रुटि: को हल करने में विफल: com.android.support.constraint: बाधा-लेआउट: 1.0.0-alpha1

इसके अलावा, एक प्रतिपादन त्रुटि के रूप में अच्छी तरह से सूचीबद्ध किया गया है कि ने कहा:

प्रतिपादन समस्याएं निम्नलिखित वर्गों पाया नहीं जा सका: - android.support.constraint.ConstraintLayout (परियोजना के लिए बाधा-लेआउट पुस्तकालय निर्भरता जोड़ें, सही करना बिल्ड पथ, एक्सएमएल संपादित करें, सी बनाएँ lass)

इसे ठीक करने के तरीके पर कोई विचार? कृपया स्क्रीन शॉट्स को ऊपर (ऊपर) देखें। मैं एंड्रॉइड स्टूडियो में नया हूं।

आपके समय के लिए बहुत बहुत धन्यवाद।

मैं निम्नलिखित ओएस और नीचे एंड्रॉयड स्टूडियो संस्करण का उपयोग कर रहा हूँ:

Win7 पेशेवर 64 बिट ओएस

एंड्रॉयड स्टूडियो 2.2

बिल्ड # ऐ-145,3330264, 6 अक्टूबर, 2016 को बनाया गया

उत्तर

19

आप में जांच जोड़ने की जरूरत है ..

नाम "एसडीके प्रबंधक" के साथ एक आइकन मौजूद बस क्लिक करें

खुला Settings -> Appearance & Behavior -> System Settings -> Android SDK -> SDK Tools

और यह संवाद ऐड में:

  • ConstraintLayout के लिए एंड्रॉयड
  • सॉल्वर ConstrainLayout
  • के लिए

enter image description here

फिर, यहाँ केवल आप करीब है और खुला जरूरत एंड्रॉइड स्टूडियो

शायद ही आपको अवगत करवाने के कर सकते हैं:

compile 'com.android.support.constraint:constraint-layout:1.0.0-alpha8'

3

या करने के लिए अपनी निर्भरता को अद्यतन:

compile 'com.android.support.constraint:constraint-layout:1.0.2' 
+0

कि संस्करणों स्थानीय मशीन पर स्थापित पर निर्भर करता है। – pram

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

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