Android Build a Simple Android App Creating the Screen Layout Adding a Button

Can't emulate my app.

So, I've been closely following the tutorial "Build a Simple Android App". When I try to emulate it by the end of "Adding a Button" video, my app fails to emulate.

It says:

Rendering Problems The following classes could not be instantiated: - (Open Class, Show Exception, Clear Cache) Tip: Use View.isInEditMode() in your custom views to skip code or show sample data when shown in the IDE Exception Details java.lang.NullPointerException   at   at   at<init>(   at java.lang.reflect.Constructor.newInstance(   at<init>(   at   at<init>( Copy stack to clipboard Failed to find the style corresponding to the id 2147418176 (6 similar errors not shown) Failed to load AppCompat ActionBar with unknown error. (3 similar errors not shown)

What now?

1 Answer

You likely dragged the "Plain Text" view (found under Text Fields) rather than the "Plain TextView" (found under Widgets). The first is an editable input. I did the same thing. Swapped it out and all is gold.