android - Missing resource name -
i apologize if dumb question. tried hard find answer on site.
i android newcomer. when ran first sample "hello world" application appears when install android studio, 1 of lines had problem called "missing resource name" on @+id of following code.
how can fix issue? in advance!
<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" android:id="@+id/"> <textview android:text="@string/hello_world" android:layout_width="wrap_content" android:layout_height="wrap_content" /> </relativelayout>
you should delete line android:id="@+id/"
or give id relativelayout
android:id="@+id/some_id"
Comments
Post a Comment