在渲染过程中发生异常:java.lang.System.arraycopy [英] Exception raised during rendering: java.lang.System.arraycopy
问题描述
我有一个奇怪的问题,新的ADT版本。我已经下载从 eclipse.org 新的Eclipse,然后我就可以安装ADT。一切工作正常;我可以为Android和所有的东西工作的一个项目不错,除了:
I have a Strange problem with the new ADT version. I have downloaded the new Eclipse from eclipse.org then I install ADT on it. Everything works fine; I can create a project for android and all thing work well, except:
在试图创建一个XML布局,我得到以下错误:
When trying to create one xml layout, I get the following error:
Exception raised during rendering: java.lang.System.arraycopy
和错误日志中我看到的:
and in the Error Log I see:
Failed to render set of icons for AnalogClock, AutonCompleteTextView, button, SmallButton , ....
Ff的更改的EditText
到的TextView
,错误消失。我甚至可以用此警告运行我的程序,但我想看看我在图形部分的布局。
Ff I change EditText
to TextView
, the error disappears. I can run my program even with this warning, but I want to see my layout in graphical section.
我的布局是:
<?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>
我寻找一个答案在这里,但没有发现任何。我该如何解决这个问题?
I searched for an answer here but didn't find any. How can I fix this?
PS:这个问题发生在ADT 23 - 我试过跟ADT 22.6,和它的工作好
PS: This problem happened on ADT 23 - I tried it with ADT 22.6, and it worked well.
推荐答案
这个问题发生在API 20(安卓4.4 W)最近,我有这一点,但问题会通过改变Android版本用于渲染层次的形式解决的问题API 20(安卓4.4 W)到API 19(安卓4.4.2)(在图形布局右上角的Android图标)或者更新SDK到Android L(API 20升preVIEW)
this problem happened on API 20 ( Android 4.4 W ) I recently have a problem with that but 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 )
屏幕快照:
这篇关于在渲染过程中发生异常:java.lang.System.arraycopy的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!