1

Whenever I add any TextView in the XML file it shows me the error "Exception raised during rendering: java.lang.System.arraycopy([CI[CII)V".

What is the reasoning behind this?

This is the XML part where the above written error is being shown.

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

Atul Mittal
  • 111
  • 1
  • 4
  • 15
  • It would benefit you to add your xml, at least the part where you're trying to ass a view – ElefantPhace Sep 27 '14 at 06:39
  • possible duplicate of [Exception raised during rendering: java.lang.System.arraycopy](http://stackoverflow.com/questions/24451490/exception-raised-during-rendering-java-lang-system-arraycopy) – Kaushik Sep 27 '14 at 06:53

2 Answers2

0

This problem happened on API 20 (Android 4.4 W). Problem will be solved by changing Android version to use for rendering level form API 20 (Android 4.4 W) to API 19 (Android 4.4.2) (android icon in top right corner of graphical layout) or update your SDK to Android L (API 20 L preview)

Source of answer

enter image description here

Community
  • 1
  • 1
Kaushik
  • 6,150
  • 5
  • 39
  • 54
0

Check the "Android version to use when rendering layouts". Chose any version that does not have "W" at the end . Those versions are for wearable devices.

enter image description here

Kushal Sharma
  • 5,978
  • 5
  • 25
  • 41