I started learning Android Studio from yesterday. I am trying to repeat a simple "Hello World":
<?xml version="1.0" encoding="utf-8"?> <RelativeLayout android:id="@+id/activity_main" xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:paddingLeft="16dp" android:paddingRight="16dp" android:paddingTop="16dp" android:paddingBottom="16dp" tools:context=".MainActivity"> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Hello World!" /> </RelativeLayout>
but when I clicked the “design” view, does this error show?
Design Editor Unavailable until Build Successful
How can I fix this error. I just downloaded Android Studio yesterday.


I just noticed that my XML code is causing an error. that is why it may not work. thank you so much
source share