Error: (44) No resource identifier found for attribute 'srcCompat' in package 'name of my package'

0

Hello,

When I open my project, the following error occurs: Error: (44) No resource identifier found for attribute 'srcCompat' in package. And the R of my layout, do not find the layouts and with that all my classes are in error. Here are some pictures:

XMLofoneoftheactivities(list_layout_message)

<?xmlversion="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:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="#dfedd6"
    android:orientation="vertical">

    <RelativeLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent">

        <TextView
            android:id="@+id/textViewUsuario"
            android:layout_width="320dp"
            android:layout_height="30dp"
            android:text="TextView"
            android:textAppearance="@style/Base.TextAppearance.AppCompat.Large" />

        <TextView
            android:id="@+id/textViewDatas"
            android:layout_width="50dp"
            android:layout_height="30dp"
            android:layout_alignParentEnd="true"
            android:layout_alignParentTop="true"
            android:text="Data" />

        <TextView
            android:id="@+id/textViewTexto"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_alignParentStart="true"
            android:layout_below="@+id/textViewUsuario"
            android:text="TextView" />

        <TextView
            android:id="@+id/textView2"
            android:layout_width="match_parent"
            android:layout_height="5dp"
            android:layout_alignParentStart="true"
            android:layout_below="@+id/fbtnRespMensagem"
            android:text="TextView" />

        <android.support.design.widget.FloatingActionButton
            android:id="@+id/fbtnRespMensagem"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignStart="@+id/textViewDatas"
            android:layout_below="@+id/textViewTexto"
            android:clickable="true"
            android:onClick="respostaMensagem"
            app:backgroundTint="#2397f3"
            app:fabSize="mini"
            app:srcCompat="@android:drawable/ic_menu_revert" />
    </RelativeLayout>

</LinearLayout>

Can anyone help me? I've looked in several places, and no solution: /

    
asked by anonymous 15.10.2017 / 19:46

1 answer

2

The error appears to be in app:srcCompat="@android:drawable/ic_menu_revert" .

With the information available I can not know the reason.

For now, you can solve the problem by replacing

app:srcCompat="@android:drawable/ic_menu_revert"

by

android:src="@android:drawable/ic_menu_revert"
    
15.10.2017 / 20:41