जब मैं लेआउट संपादक खोलने के लिए, ग्रहण इस त्रुटि दे रही है:parseSdkContent में विफल रहा है आरंभ नहीं हो सका वर्ग android.graphics.Typeface
parseSdkContent failed
Could not initialize class android.graphics.Typeface
और जब मैं परियोजना चलाने का प्रयास है, यह इस त्रुटि दे रहा है:
An internal error occurred during: "Launching myapp".
java.lang.NullPointerException
हर बार मुझे यह त्रुटि मिल रही है और मुझे ग्रहण को पुनरारंभ करना होगा। क्या कोई समाधान है? यह समस्या आज अचानक शुरू हुई।
एक्सएमएल फ़ाइल:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#66000000"
>
<RelativeLayout
android:id="@+id/refresh_match_layout"
android:layout_width="fill_parent"
android:layout_height="150dp"
android:layout_centerInParent="true"
android:layout_margin="15dp"
android:background="@drawable/app_detay_lay_bg"
android:orientation="vertical"
android:padding="10dp"
android:visibility="visible" >
<ImageView
android:id="@+id/app_icon"
android:layout_width="50dp"
android:layout_height="50dp"
android:padding="10dp"
android:textColor="#ffffff"
android:textSize="20sp" />
<TextView
android:id="@+id/app_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="8dp"
android:textColor="#000000"
android:layout_toRightOf="@+id/app_icon"
android:layout_marginTop="2dp"
android:textSize="20sp" />
<ImageButton
android:id="@+id/app_detail_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_alignParentBottom="true"
android:layout_marginBottom="2dp"
android:background="@null"
android:src="@drawable/settings_detail"/>
<ImageButton
android:id="@+id/app_remove_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/app_icon"
android:layout_alignTop="@+id/app_detail_button"
android:background="@null"
android:src="@drawable/settings_remove" />
</RelativeLayout>
</RelativeLayout>
त्रुटि चित्र:
यह किसी भी नई परियोजनाओं या सिर्फ इस पर होता है? –
क्या आपने हाल ही में एसडीके टूल्स, या एडीटी प्लगइन को अपडेट किया है, यदि ऐसा है, तो जांचें कि – Boardy
दोनों के लिए कोई अपडेट नहीं है यह केवल इस प्रोजेक्ट में होता है और मैंने कुछ भी अपडेट नहीं किया है। सौभाग्य से यह अभी के लिए तय है। – Lazy