0

hi i get a error in my android application if I use this layout:

<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>

this is the error that i see if I want to see the layout in the Graphical Layout:

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

here my version

<uses-sdk
        android:minSdkVersion="15"
        android:targetSdkVersion="21" />
Tarasov
  • 3,625
  • 19
  • 68
  • 128

1 Answers1

2

You cannot use EditText on 4.4W. Change the API to 19 or less if you are not downloaded API 19 then you can download API level 19 from SDK Manager.

Bhuvnesh
  • 1,055
  • 9
  • 29