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

前端 未结 9 1431
滥情空心
滥情空心 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.

    0 讨论(0)
  • 2020-12-18 18:44

    It looks like you just created a new project. So what fixed it for me was updating my build support tools, then creating a new project from scratch.

    To update: Android Studio->Preferences...->Appearance & Behavior->System Settings->Android SDK->Android SDK Build-Tools->Check the box to update

    0 讨论(0)
  • 2020-12-18 18:44

    i got the similar issue.

    my instructor try update API 22 to API 25, and it's work. maybe you could try on the same.

    0 讨论(0)
提交回复
热议问题