Syn3sthete Syn3sthete - 4 months ago 376
Android Question

URI not registered Android studio error

I have Just installed

android studio
on my computer and I tried to create a new application with the default options selected.

<RelativeLayout 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="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
android:paddingBottom="@dimen/activity_vertical_margin"
tools:context=".MainActivity">

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/hello_world" />

</RelativeLayout>


The above is the code which was auto-generated in my
main.xml
file but I get the error as

URI is not registered ( Setting | Project Settings | Schemas and DTDs )


on the folllowing 2 lines

xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"


I have tried searching for the solution of this problem but couldn't get a proper answer.
Anyone please help in solving this error.
Thank you.

Answer

This problem was solved by updating the Android Studio to the latest available version. Thanks.

Comments