【问题标题】:Error while adding text field in Emulator在模拟器中添加文本字段时出错
【发布时间】:2014-11-22 04:47:34
【问题描述】:

每当我在 XML 文件中添加任何 TextView 时,它都会向我显示错误“呈现期间引发的异常:java.lang.System.arraycopy([CI[CII)V”。

这背后的原因是什么?

这是显示上述错误的 XML 部分。

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

【问题讨论】:

标签: android xml exception android-emulator


【解决方案1】:

这个问题发生在API 20 (Android 4.4 W)。问题将通过将用于渲染级别 form API 20 (Android 4.4 W) 的 Android 版本更改为 API 19 (Android 4.4.2)(图形布局右上角的 android 图标)或将您的 SDK 更新为 Android L( API 20 L 预览版)

Source of answer

【讨论】:

    【解决方案2】:

    选中“渲染布局时使用的 Android 版本”。选择末尾没有“W”的任何版本。这些版本适用于可穿戴设备。

    【讨论】:

      猜你喜欢
      • 2019-08-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-11-22
      相关资源
      最近更新 更多