有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!

java为什么我看不到Android应用程序的布局?

嗨,如果我使用这个布局,我的安卓应用程序会出错:

<LinearLayout xmlns:安卓="http://schemas.安卓.com/apk/res/安卓"
    xmlns:tools="http://schemas.安卓.com/tools"
    安卓:layout_width="match_parent"
    安卓:layout_height="match_parent"
    安卓:orientation="horizontal">
    <EditText 安卓:id="@+id/edit_message"
        安卓:layout_weight="1"
        安卓:layout_width="0dp"
        安卓:layout_height="wrap_content"
        安卓:hint="@string/edit_message" />
    <Button
        安卓:layout_width="wrap_content"
        安卓:layout_height="wrap_content"
        安卓:text="@string/button_send" />
</LinearLayout>

如果我想在图形布局中看到布局,我会看到以下错误:

Exception raised during rendering: java.lang.System.arraycopy([CI[CII)V
Exception details are logged in Window > Show View > Error Log

这是我的版本

<uses-sdk
        安卓:minSdkVersion="15"
        安卓:targetSdkVersion="21" />

共 (1) 个答案

  1. # 1 楼答案

    不能在4.4W上使用EditText。将API更改为19或更少。如果未下载API 19,则可以从SDK管理器下载API级别19