2014-09-27 98 views
1

每當我在XML文件中添加任何TextView時,它都會顯示錯誤「在渲染期間引發異常:java.lang.System.arraycopy([CI [CII] V)」。在仿真器中添加文本字段時出錯

這是什麼原因?

這是顯示上述寫入錯誤的XML部分。

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 
android:layout_width="fill_parent" 
android:layout_height="fill_parent" 
android:orientation="vertical" > 

<EditText 
    android:id="@+id/editText1" 
    android:layout_width="match_parent" 
    android:layout_height="wrap_content" 
    android:ems="10" > 

    <requestFocus /> 
</EditText> 

+0

這將有利於您添加XML,至少部分地方你想的屁股觀點 – ElefantPhace 2014-09-27 06:39:56

+0

可能重複[異常升高渲染期間:java.lang.System.arraycopy](HTTP ://stackoverflow.com/questions/24451490/exception-raised-during-rendering-java-lang-system-arraycopy) – kId 2014-09-27 06:53:58

回答

0

檢查 「Android版本呈現佈局時使用」。選擇最後沒有「W」的任何版本。這些版本適用於可穿戴設備。

enter image description here

0

此問題發生在API 20(Android 4.4的W)。將Android版本更改爲用於渲染級別form API 20(Android 4.4 W)至API 19(Android 4.4.2)(圖形佈局右上角的android圖標)或將SDK更新至Android L(API 20 L預覽)

Source of answer

enter image description here

+0

謝謝,它的作品:) – 2014-09-27 07:03:54