为什么我不能从Android应用程序中看到布局?
问题描述:
您好我得到我的Android应用程序中的错误,如果我用这个布局:为什么我不能从Android应用程序中看到布局?
<LinearLayout 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"
android:orientation="horizontal">
<EditText android:id="@+id/edit_message"
android:layout_weight="1"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:hint="@string/edit_message" />
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android: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
android:minSdkVersion="15"
android:targetSdkVersion="21" />
答
不能在4.4W使用的EditText。如果您未下载API 19,请将API更改为19或更少,然后您可以从SDK Manager下载API级别19。
您可能在布局的预览窗口中选择了Android 4.4W(API 20)。 – reVerse 2014-09-23 08:26:45