我正尝试在我的Android应用程序中添加一个文本字段,但是当我将Plain text
选项拖到图形布局上时,底部会出现一条消息。即使我转到Window > Show View
,它也显示Exception raised during rendering: java.lang.System.arraycopy([CI[CII)V Exception details are logged in Window > Show View > Error Log
,没有错误日志选项。整个设计器现在已经没有用了,因为我不能再使用它了,除非我直接从xml中删除EditText
。是什么导致了这个错误,我该如何修复它?我运行的是最新版本(截至今天6:30-14)和Windows8专业版x64。
下面是我的完整布局代码:
<RelativeLayout 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"
tools:context="${relativePackage}.${activityClass}" >
<TextView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:layout_marginTop="18dp"
android:text="@string/welcome_text" />
<EditText
android:id="@+id/editText1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:ems="10"
android:inputType="text">
<requestFocus />
</EditText>
</RelativeLayout>
https://stackoverflow.com/questions/24501042
复制相似问题