Android棉花糖上TextInputLayout应用程序崩溃的片段

Android棉花糖上TextInputLayout应用程序崩溃的片段,android,android-fragments,material-design,android-6.0-marshmallow,Android,Android Fragments,Material Design,Android 6.0 Marshmallow,我发现了以下问题。我在XML布局中使用Material Design'classandroid.support.Design.widget.TextInputLayout 当我在碎片中膨胀此布局时,我的应用程序会出现以下错误: android.view.InflateException: Binary XML file line #563: Error inflating class <unknown> DocumentActivity.java public class Docu

我发现了以下问题。我在XML布局中使用Material Design'class
android.support.Design.widget.TextInputLayout

当我在碎片中膨胀此布局时,我的应用程序会出现以下错误:

android.view.InflateException: Binary XML file line #563: Error inflating class <unknown>
DocumentActivity.java

public class DocumentEditFragment extends BaseFragment {
...
    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        View view = inflater.inflate(R.layout.fragment_document_edit, container, false); // The app falls here on Galaxy S7
...
}
public class DocumentActivity extends AppCompatActivity {
    private DocumentEditFragment docEditFragment;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_document);
        docEditFragment = new DocumentEditFragment();
        FragmentTransaction ft = getSupportFragmentManager().beginTransaction();
        ft.replace(R.id.fragment_document, docEditFragment);
        ft.commit();
    }
}
fragment\u document\u edit.xml

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:padding="0dp"
android:layout_margin="0dp"

    <ScrollView
    android:id="@+id/doc_edit_scroll_view"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@color/white"
    android:layout_marginLeft="16dp"
    app:layout_behavior="@string/appbar_scrolling_view_behavior"
    >
...
<!-- line #563 is below: -->
        <android.support.design.widget.TextInputLayout
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:layout_marginBottom="22dp"
        android:layout_marginLeft="60dp"
        android:layout_marginRight="16dp"
        app:errorEnabled="true"
        android:theme="@style/TextLabel"
        >

        <android.support.v7.widget.AppCompatEditText
            android:id="@+id/doc_edit_comment"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:textSize="14sp"
            android:text="1st line\n2nd line"
            android:singleLine="false"
            android:hint="Comment"
            android:textColorHint="#69202020"
            />

    </android.support.design.widget.TextInputLayout>

    </ScrollView>

</LinearLayout>
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/fragment_document"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:name="my.app.DocumentFragment"
android:layout_marginLeft="0dp"
android:layout_marginRight="0dp"
tools:context="my.app.DocumentFragment"
/>