So today, while writing an example for the JCG community, I came across the following exception, while trying to add an EditText
element to my application:
Exception raised during rendering: java.lang.System.arraycopy([CI[CII)V
Despite the fact that I selected Android 4.4
( API 19
) for my application, I noticed that the selected Android API
in the Graphical Layout
of my XML
code was actually wrong:
So, the easy way, I clicked the dropdown to select again my initial option:
Wear
versions don't support
EditText
elements and that's why we got the exception.
And of course, everything was fine after that:
Cheers!
转自:http://www.tuicool.com/articles/imQnMnb