Programing

렌더링 중 발생한 예외 : java.lang.System.arraycopy

lottogame 2020. 10. 28. 07:35
반응형

렌더링 중 발생한 예외 : java.lang.System.arraycopy


새 ADT 버전에 이상한 문제가 있습니다. eclipse.org 에서 새 Eclipse를 다운로드 한 다음 ADT를 설치합니다. 모든 것이 잘 작동합니다. Android 용 프로젝트를 만들 수 있으며 다음을 제외하고 모든 것이 잘 작동합니다.

하나의 xml 레이아웃을 만들려고 할 때 다음 오류가 발생합니다.

Exception raised during rendering: java.lang.System.arraycopy

그리고 오류 로그에서 다음을 확인합니다.

Failed to render set of icons for AnalogClock, AutonCompleteTextView, button, SmallButton , ....

FF I 변화 EditText로는 TextView, 오류가 사라집니다. 이 경고가 있어도 프로그램을 실행할 수 있지만 그래픽 섹션에서 레이아웃을보고 싶습니다.

내 레이아웃은 다음과 같습니다.

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@drawable/settingback"
    android:orientation="vertical"
    android:weightSum="480" >

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="0dp"
        android:layout_weight="50"
        android:gravity="right"
        android:orientation="horizontal" >

        <Button
            android:id="@+id/close"
            android:layout_width="50dp"
            android:layout_height="match_parent"
            android:background="#00000000" />
    </LinearLayout>

    <View
        android:id="@+id/view1"
        android:layout_width="wrap_content"
        android:layout_height="0dp"
        android:layout_weight="20" />

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="0dp"
        android:layout_weight="40"
        android:orientation="horizontal"
        android:weightSum="320" >

        <View
            android:id="@+id/view8"
            android:layout_width="0dp"
            android:layout_height="match_parent"
            android:layout_weight="40" />

        <EditText
            android:id="@+id/textView1"
            android:layout_width="0dp"
            android:layout_height="match_parent"
            android:layout_weight="240"
            android:gravity="center|right"
            android:background="#00000000"/>

        <View
            android:id="@+id/view9"
            android:layout_width="0dp"
            android:layout_height="match_parent"
            android:layout_weight="40" />
    </LinearLayout>

    <View
        android:id="@+id/view2"
        android:layout_width="match_parent"
        android:layout_height="0dp"
        android:layout_weight="20" />

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="0dp"
        android:layout_weight="35"
        android:orientation="horizontal" >

        <View
            android:id="@+id/view10"
            android:layout_width="0dp"
            android:layout_height="match_parent"
            android:layout_weight="40" />

        <EditText
            android:id="@+id/textView2"
            android:layout_width="0dp"
            android:layout_height="match_parent"
            android:layout_weight="240"
            android:gravity="center|right"
            android:background="#00000000" />

        <View
            android:id="@+id/view11"
            android:layout_width="0dp"
            android:layout_height="match_parent"
            android:layout_weight="40" />
    </LinearLayout>

    <View
        android:id="@+id/view3"
        android:layout_width="wrap_content"
        android:layout_height="0dp"
        android:layout_weight="10" />

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="0dp"
        android:layout_weight="35"
        android:orientation="horizontal" >

        <View
            android:id="@+id/view12"
            android:layout_width="0dp"
            android:layout_height="match_parent"
            android:layout_weight="40" />

        <EditText
            android:id="@+id/textView3"
            android:layout_width="0dp"
            android:layout_height="match_parent"
            android:layout_weight="240"
            android:gravity="center|right"
            android:background="#00000000"/>

        <View
            android:id="@+id/view13"
            android:layout_width="0dp"
            android:layout_height="match_parent"
            android:layout_weight="40" />
    </LinearLayout>

    <View
        android:id="@+id/view4"
        android:layout_width="wrap_content"
        android:layout_height="0dp"
        android:layout_weight="105" />

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="0dp"
        android:layout_weight="40"
        android:orientation="horizontal" >

        <View
            android:id="@+id/view14"
            android:layout_width="0dp"
            android:layout_height="match_parent"
            android:layout_weight="40" />

        <EditText
            android:id="@+id/textView4"
            android:layout_width="0dp"
            android:layout_height="match_parent"
            android:layout_weight="240"
            android:gravity="center|right"
            android:background="#00000000" />

        <View
            android:id="@+id/view15"
            android:layout_width="0dp"
            android:layout_height="match_parent"
            android:layout_weight="40" />
    </LinearLayout>

    <View
        android:id="@+id/view5"
        android:layout_width="match_parent"
        android:layout_height="0dp"
        android:layout_weight="5" />

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="0dp"
        android:layout_weight="40" >

        <View
            android:layout_width="0dp"
            android:layout_height="match_parent"
            android:layout_weight="40"
             />

        <EditText
            android:id="@+id/textView6"
            android:layout_width="0dp"
            android:layout_height="match_parent"
            android:layout_weight="240"
            android:gravity="center|right"
            android:background="#00000000" />

        <View
            android:layout_width="0dp"
            android:layout_height="match_parent"
            android:layout_weight="40" />
    </LinearLayout>

    <View
        android:id="@+id/view6"
        android:layout_width="match_parent"
        android:layout_height="0dp"
        android:layout_weight="20" />

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="0dp"
        android:layout_weight="30"
        android:orientation="horizontal"
        android:weightSum="320" >

        <View
            android:id="@+id/view16"
            android:layout_width="0dp"
            android:layout_height="match_parent"
            android:layout_weight="90" />

        <CheckBox
            android:id="@+id/shake"
            android:layout_width="0dp"
            android:layout_height="match_parent"
            android:layout_gravity="center"
            android:layout_weight="70"
            android:gravity="center" />

        <View
            android:layout_width="0dp"
            android:layout_height="match_parent"
            android:layout_weight="10" />

        <CheckBox
            android:id="@+id/ring"
            android:layout_width="0dp"
            android:layout_height="match_parent"
            android:layout_gravity="center"
            android:layout_weight="70"
            android:gravity="center" />

        <View
            android:id="@+id/view17"
            android:layout_width="0dp"
            android:layout_height="match_parent"
            android:layout_weight="80" />
    </LinearLayout>

    <View
        android:id="@+id/view7"
        android:layout_width="match_parent"
        android:layout_height="0dp"
        android:layout_weight="30" />

</LinearLayout>

여기서 답변을 검색했지만 아무것도 찾지 못했습니다. 이 문제를 어떻게 해결할 수 있습니까?

추신 :이 문제는 ADT 23에서 발생했습니다. ADT 22.6으로 시도했는데 잘 작동했습니다.


이 문제는 API 20 (Android 4.4 W)에서 발생했습니다. 최근에 문제가 발생했지만 API 20 (Android 4.4 W)을 렌더링하는 데 사용할 Android 버전을 API 19 (Android 4.4.2)로 변경하면 문제가 해결 될 것입니다. 그래픽 레이아웃의 오른쪽 상단 모서리에있는 Android 아이콘) 또는 SDK를 Android L로 업데이트 (API 20 L 미리보기)

스크린 샷 :

여기에 이미지 설명 입력


Android Wear는 손목 시계이므로 아무것도 입력 할 수 없으므로 4.4W에서 EditText를 사용할 수 없습니다. API를 19 이하로 변경하거나 SDK Manager에서 다운로드 할 수있는 4.4L로 변경하십시오. 이것은 버그가 아닙니다.


20 (4.4W)에서도 똑같은 문제가 발생했지만 설치하고 20 (4.4L (미리보기))을 선택하면 사라졌습니다. 4.4W가 Android Wear SDK이기 때문일 수 있으므로 표준 휴대 전화 / 태블릿 Android의 모든 기능을 지원하지 않을 수 있습니다.


@shayan pourvatan은 이미이 질문에 적절하게 대답했습니다. API 20 L 버전을 설치하여 미리보기 렌더러로 사용하는 방법을 설명하는 두 이미지를 추가하고 있습니다.

여기에 이미지 설명 입력

여기에 이미지 설명 입력


4.4W SDK를 4.4W2 SDK로 업데이트 할 수 있습니다. 내 것을 고쳤습니다.

참고 URL : https://stackoverflow.com/questions/24451490/exception-raised-during-rendering-java-lang-system-arraycopy

반응형