Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Android Build an Interactive Story App (Retired) User Input Using EditText for Text Input

Ahmed Elsawey
Ahmed Elsawey
Courses Plus Student 3,527 Points

Name text field is not displayed on the app neither is it working and hardcoded text errors.

Whenever I try adding a name text field, I get this rendering problem/error "Exception raised during rendering, java.lang.system.arraycopy([CI[CII)V". I have no clue what does it mean or why despite me watching the video and following Ben step by step but it doesn't work. Also, I want to know a way to extract hardcoded strings I need someone to explain why and what is extracting hardcoded strings and how too.

1 Answer

Harry James
Harry James
14,780 Points

Hey Ahmed!

If you're getting this error, it usually means that you've selected the Android Wear SDK rather than the mobile SDK. This is usually shown by the API version ending with a W.

On the Preview, click on the Android icon and make sure that the SDK version does not end with a W. If it does, change the version (You may have to download a different version from the SDK Manager).

In your AndroidManifest.xml, make sure that your targetSdkVersion and minSdkVersion also do not end with a W.

Then, try again and you should no longer have the problems (You may have to close down your activity preview and open it again to rebuild the preview).

Hopefully this should fix the problem but if not, give me a shout and I'll try my best to help :)