Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error in adding an edit text in eclipse

I'm building an Android app for a tablet. 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

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

like image 345
Mash Avatar asked Jul 06 '14 04:07

Mash


2 Answers

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.

Go to

Window > Android SDK Manager > check Android 4.4W(API 20) > Delete package

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

It works for me, hope for you too.

like image 58
Rafael Avatar answered Oct 31 '22 21:10

Rafael


Android W(atch) doesn't support Text Fields.

Lower the API level to <=19 and it should work.

This was mentioned in https://stackoverflow.com/a/24473444/666208

like image 37
Rolf Beh Avatar answered Oct 31 '22 20:10

Rolf Beh