Can't resolve symbol MenuItemCompat

梦想的初衷 提交于 2019-12-14 04:22:20

问题


I get an error on using MenuItemCompat that the symbol cannot be resolved. Neither is there any option to import anything at all. I am new to android. I think there are some dependencies missing. I was trying to use getActionProvider() method to get Action Provider of a menu item.


回答1:


If you are using Android Studio then configure the SDK Manager and download below libraries (present inside Extras directory) -
1. Android Support Repository
2. Android Support Library

Then restart the Android Studio. If this doesn't work then update your Android Studio (latest is 1.3.1).



来源:https://stackoverflow.com/questions/32205567/cant-resolve-symbol-menuitemcompat

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!