「Unexpected namespace prefix “custom” found for tag」の解決対策
エラーメッセージ
Unexpected namespace prefix “custom" found for tag
対策
<?xml version="1.0″ encoding="utf-8″?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:custom="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
<fragment
class="com.demo.artshell.fragmentdemo.ExampleFragment"
android:id="@+id/example_fragment"
android:layout_width="match_parent"
android:layout_height="match_parent"
custom:label="@string/example_fragment_arguments"
tools:ignore="MissingPrefix"/>
</LinearLayout>
下記を追加
xmlns:tools="http://schemas.android.com/tools"
tools:ignore="MissingPrefix"