title: Cannot add textfield to android application
body: <p>i have written a few small apps in Eclipse/Android, so i am not totally new to the whole edi.</p>
  
  <p>i created a few screens at my home ( a login screen and one or 2 more) and the application worked fine, now that i want to build the same screen at work i cant drag any text control onto the application page, it gives me teh below error and the screen stays blank? below is my XMl and error given :</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;RelativeLayout xmlns:tools="http://schemas.android.com/tools"
      xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      tools:context=".LoginScreen" &gt;
  
      &lt;EditText
          android:id="@+id/textboxUserName"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_alignParentTop="true"
          android:layout_centerHorizontal="true"
          android:layout_marginTop="121dp"
          android:ems="10"
          android:hint="@string/blankstring"
          android:text="@string/blankstring" /&gt;
  
      &lt;TextView
          android:id="@+id/labelusername"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_alignBottom="@+id/textboxUserName"
          android:layout_alignLeft="@+id/textboxUserName"
          android:layout_marginBottom="39dp"
          android:hint="@string/LblUsername"
          android:text="@string/LblUsername"
          android:textAppearance="?android:attr/textAppearanceLarge" /&gt;
  
      &lt;Button
          android:id="@+id/btnLogin"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_alignLeft="@+id/passwordboxPassword"
          android:layout_alignRight="@+id/passwordboxPassword"
          android:layout_below="@+id/passwordboxPassword"
          android:layout_marginTop="19dp"
          android:focusable="false"
          android:hint="@string/btnLogin"
          android:text="@string/btnLogin" /&gt;
  
      &lt;TextView
          android:id="@+id/labelpassword"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_alignLeft="@+id/textboxUserName"
          android:layout_below="@+id/textboxUserName"
          android:layout_marginTop="21dp"
          android:hint="@string/LblPassword"
          android:text="@string/LblPassword"
          android:textAppearance="?android:attr/textAppearanceLarge" /&gt;
  &lt;requestFocus /&gt;
  
      &lt;EditText
          android:id="@+id/passwordboxPassword"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_alignLeft="@+id/labelpassword"
          android:layout_below="@+id/labelpassword"
          android:ems="10"
          android:hint="@string/blankstring"
          android:inputType="textPassword"
          android:text="@string/blankstring" &gt;
  
      &lt;/EditText&gt;
  
      &lt;TextView
          android:id="@+id/lblnewuser"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_below="@+id/btngooglelogin"
          android:layout_centerHorizontal="true"
          android:layout_marginTop="51dp"
          android:text="@string/lblNewUser"
          android:textAppearance="?android:attr/textAppearanceLarge" /&gt;
  
      &lt;Button
          android:id="@+id/btnRegister"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_alignLeft="@+id/btnLogin"
          android:layout_alignRight="@+id/btnLogin"
          android:layout_below="@+id/lblnewuser"
          android:layout_marginTop="11dp"
          android:text="@string/btnRegister" /&gt;
  
      &lt;ImageView
          android:id="@+id/imageView1"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_above="@+id/labelusername"
          android:layout_alignParentRight="true"
          android:layout_alignParentTop="true"
          android:contentDescription="@string/blankstring"
          android:src="@drawable/logo" /&gt;
  
      &lt;ImageButton
          android:id="@+id/btnfacebooklogin"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_above="@+id/lblnewuser"
          android:layout_marginRight="24dp"
          android:layout_toLeftOf="@+id/imageView1"
          android:background="@android:color/transparent"
          android:contentDescription="@string/blankstring"
          android:src="@drawable/facebookloginicon" /&gt;
  
      &lt;ImageButton
          android:id="@+id/btngooglelogin"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_alignRight="@+id/labelpassword"
          android:layout_below="@+id/btnLogin"
          android:layout_marginRight="24dp"
          android:layout_marginTop="15dp"
          android:background="@android:color/transparent"
          android:contentDescription="@string/blankstring"
          android:scaleType="fitCenter"
          android:src="@drawable/gplusloginpiclarge" /&gt;
  
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>and the error is : </p>
  
  <pre><code>java.lang.NoSuchMethodError: java.lang.System.arraycopy([CI[CII)V
  at android.text.SpannableStringBuilder.getChars(SpannableStringBuilder.java:916)
  at android.text.TextUtils.getChars(TextUtils.java:79)
  at android.text.method.ReplacementTransformationMethod$ReplacementCharSequence.getChars(ReplacementTransformationMethod.java:151)
  at android.text.TextUtils.getChars(TextUtils.java:79)
  at android.text.MeasuredText.setPara(MeasuredText.java:106)
  at android.text.StaticLayout.generate(StaticLayout.java:239)
  at android.text.DynamicLayout.reflow(DynamicLayout.java:284)
  at android.text.DynamicLayout.&lt;init&gt;(DynamicLayout.java:170)
  at android.widget.TextView.makeSingleLayout(TextView.java:6134)
  at android.widget.TextView.makeNewLayout(TextView.java:6032)
  at android.widget.TextView.onMeasure(TextView.java:6389)
  at android.view.View.measure(View.java:16648)
  at android.widget.RelativeLayout.measureChildHorizontal(RelativeLayout.java:719)
  at android.widget.RelativeLayout.onMeasure(RelativeLayout.java:455)
  at android.view.View.measure(View.java:16648)
  at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5125)
  at android.widget.FrameLayout.onMeasure(FrameLayout.java:310)
  at android.view.View.measure(View.java:16648)
  at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5125)
  at com.android.internal.widget.ActionBarOverlayLayout.onMeasure(ActionBarOverlayLayout.java:337)
  at android.view.View.measure(View.java:16648)
  at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5125)
  at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1404)
  at android.widget.LinearLayout.measureHorizontal(LinearLayout.java:1052)
  at android.widget.LinearLayout.onMeasure(LinearLayout.java:590)
  at android.view.View.measure(View.java:16648)
  at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5125)
  at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1404)
  at android.widget.LinearLayout.measureVertical(LinearLayout.java:695)
  at android.widget.LinearLayout.onMeasure(LinearLayout.java:588)
  at android.view.View.measure(View.java:16648)
  at android.widget.LinearLayout.measureVertical(LinearLayout.java:847)
  at android.widget.LinearLayout.onMeasure(LinearLayout.java:588)
  at android.view.View.measure(View.java:16648)
  at com.android.layoutlib.bridge.impl.RenderSessionImpl.measureView(RenderSessionImpl.java:619)
  at com.android.layoutlib.bridge.impl.RenderSessionImpl.render(RenderSessionImpl.java:519)
  at com.android.layoutlib.bridge.Bridge.createSession(Bridge.java:339)
  at com.android.ide.common.rendering.LayoutLibrary.createSession(LayoutLibrary.java:332)
  at com.android.ide.eclipse.adt.internal.editors.layout.gle2.RenderService.createRenderSession(RenderService.java:517)
  at com.android.ide.eclipse.adt.internal.editors.layout.gle2.GraphicalEditorPart.renderWithBridge(GraphicalEditorPart.java:1584)
  at com.android.ide.eclipse.adt.internal.editors.layout.gle2.GraphicalEditorPart.recomputeLayout(GraphicalEditorPart.java:1309)
  at com.android.ide.eclipse.adt.internal.editors.layout.gle2.GraphicalEditorPart.onXmlModelChanged(GraphicalEditorPart.java:1267)
  at com.android.ide.eclipse.adt.internal.editors.layout.LayoutEditorDelegate.delegateXmlModelChanged(LayoutEditorDelegate.java:402)
  at com.android.ide.eclipse.adt.internal.editors.common.CommonXmlEditor.xmlModelChanged(CommonXmlEditor.java:329)
  at com.android.ide.eclipse.adt.internal.editors.AndroidXmlEditor$XmlModelStateListener.modelChanged(AndroidXmlEditor.java:1653)
  at com.android.ide.eclipse.adt.internal.editors.AndroidXmlEditor.wrapEditXmlModel(AndroidXmlEditor.java:1114)
  at com.android.ide.eclipse.adt.internal.editors.AndroidXmlEditor.wrapUndoEditXmlModel(AndroidXmlEditor.java:1190)
  at com.android.ide.eclipse.adt.internal.editors.layout.gle2.MoveGesture.drop(MoveGesture.java:396)
  at com.android.ide.eclipse.adt.internal.editors.layout.gle2.GestureManager$CanvasDropListener.drop(GestureManager.java:679)
  at org.eclipse.swt.dnd.DNDListener.handleEvent(DNDListener.java:91)
  at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
  at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4353)
  at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1061)
  at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1085)
  at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1070)
  at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:782)
  at org.eclipse.swt.dnd.DropTarget.Drop(DropTarget.java:456)
  at org.eclipse.swt.dnd.DropTarget.Drop_64(DropTarget.java:392)
  at org.eclipse.swt.dnd.DropTarget$3.method6(DropTarget.java:260)
  at org.eclipse.swt.internal.ole.win32.COMObject.callback6(COMObject.java:119)
  at org.eclipse.swt.internal.ole.win32.COM.DoDragDrop(Native Method)
  at org.eclipse.swt.dnd.DragSource.drag(DragSource.java:363)
  at org.eclipse.swt.dnd.DragSource.access$0(DragSource.java:289)
  at org.eclipse.swt.dnd.DragSource$1.handleEvent(DragSource.java:172)
  at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
  at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4353)
  at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1061)
  at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4172)
  at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761)
  at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1151)
  at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
  at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1032)
  at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:148)
  at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:636)
  at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
  at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:579)
  at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
  at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:135)
  at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
  at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
  at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
  at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:382)
  at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:236)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  at java.lang.reflect.Method.invoke(Unknown Source)
  at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)
  at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
  at org.eclipse.equinox.launcher.Main.run(Main.java:1465)
  at org.eclipse.equinox.launcher.Main.main(Main.java:1438)
  </code></pre>
  
  <p>and my screen is blank as seen i picture below :</p>
  
  <p><img src="https://i.stack.imgur.com/NY5O5.png" alt="Using Eclipse Luna"></p>
  
  <p>am I missing a reference?? should I install something else? I have no idea what is wrong here, and obviously I can upload the app to my phone but it crashes immediately</p>