简体   繁体   English

在eclipse中添加编辑文本时出错

[英]Error in adding an edit text in eclipse

I'm building an Android app for a tablet. 我正在为平板电脑构建Android应用。 I'm trying to add an EditText in my graphical view in Eclipse but whenever I choose EditText from the widget and drop to the graphical view, the screen turn gray and i get this error 我正在尝试在Eclipse的图形视图中添加EditText ,但每当我从窗口小部件中选择EditText并放到图形视图时,屏幕变为灰色,我收到此错误

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

How to fix this problem? 如何解决这个问题?

In the new update come the 4.4W (Android Wear) and he doesnt support EditText , so the best and simple way to solve is deleting 4.4W. 在新的更新中,4.4W(Android Wear)并不支持EditText ,因此最好和最简单的解决方法是删除4.4W。

Go to

Window > Android SDK Manager > check Android 4.4W(API 20) > Delete package Window> Android SDK Manager>检查Android 4.4W(API 20)>删除包

Maybe then you can't create a new project, so you back to SDK manager and download another version like 4.4.2(API 19). 也许那时你无法创建一个新项目,所以你回到SDK管理器并下载另一个版本,如4.4.2(API 19)。

It works for me, hope for you too. 它适合我,也希望你。

Android W(atch) doesn't support Text Fields. Android W(atch)不支持文本字段。

Lower the API level to <=19 and it should work. 将API级别降低到<= 19,它应该可以工作。

This was mentioned in https://stackoverflow.com/a/24473444/666208 这在https://stackoverflow.com/a/24473444/666208中提到

No need to delete the API 20 package. 无需删除API 20包。

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 ) 这个问题发生在API 20(Android 4.4 W)上我最近有一个问题,但问题将通过更改Android版本用于渲染级别表格API 20(Android 4.4 W)到API 19(Android 4.4.2)来解决(图形布局右上角的android图标)或将SDK更新为Android L(API 20 L预览版)

Reference: Exception raised during rendering: java.lang.System.arraycopy 参考: 渲染期间引发的异常:java.lang.System.arraycopy

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM