2014-09-23 44 views
0

您好我得到我的Android應用程序中的錯誤,如果我用這個佈局:爲什麼我不能從Android應用程序中看到佈局?

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 
    xmlns:tools="http://schemas.android.com/tools" 
    android:layout_width="match_parent" 
    android:layout_height="match_parent" 
    android:orientation="horizontal"> 
    <EditText android:id="@+id/edit_message" 
     android:layout_weight="1" 
     android:layout_width="0dp" 
     android:layout_height="wrap_content" 
     android:hint="@string/edit_message" /> 
    <Button 
     android:layout_width="wrap_content" 
     android:layout_height="wrap_content" 
     android:text="@string/button_send" /> 
</LinearLayout> 

這是,如果我想看到圖形佈局的佈局,我看到的錯誤:

Exception raised during rendering: java.lang.System.arraycopy([CI[CII)V 
Exception details are logged in Window > Show View > Error Log 

這裏我的版本

<uses-sdk 
     android:minSdkVersion="15" 
     android:targetSdkVersion="21" /> 
+1

您可能在佈局的預覽窗口中選擇了Android 4.4W(API 20)。 – reVerse 2014-09-23 08:26:45

回答

2

不能在4.4W使用的EditText。如果您未下載API 19,請將API更改爲19或更少,然後您可以從SDK Manager下載API級別19。

相關問題