No resource identifier found for attribute 'srcCompat' in package 'learnapp.android.example.com.learnapp'

前端 未结 9 1462
滥情空心
滥情空心 2020-12-18 18:02

I am getting Error:(26) No resource identifier found for attribute \'srcCompat\' in package \'learnapp.android.example.com.learnapp\' when I try to run my app.I

9条回答
  •  自闭症患者
    2020-12-18 18:42

    You can also try

    android:src = "@drawable/ic_dialog_email"
    

    instead of

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

    I had the same error and this worked for me.

提交回复
热议问题