appcompat-v7:21.0.0': No resource found that matches the given name: attr 'android:actionModeShareDrawable'

后端 未结 14 1905
不思量自难忘°
不思量自难忘° 2020-11-22 05:03

When attempting to use the latest appcompat-v7 support library in my project, I get the following error:

/Users/greg/dev/mobile/android_project/app/build/int         


        
14条回答
  •  既然无缘
    2020-11-22 05:06

    My problem was that I had other libraries that my project referenced and those libraries had another version of appcompat referenced. This is what I did to resolve the issue:

    (You should back up your project before doing this)

    1) I deleted all the appcompat layout folders (ex: /res/layout-v11).

    2) Solved the problems that arose from that, usually an error in menu.xml

    3) Back to main project and add appcompat library, clean, and everything works!

提交回复
热议问题