I am getting this error in my menu.xml file. this is odd since I have checked my code many times. I have tried cleaning and renaming the the id but no effect and also tried to build the project but project didn't build due to this error can anybody help me with this. I have tried different questions already but didn't found the answer. here is my code I have also tried the solutions given in this question but no use: No resource identifier found for attribute 'showAsAction' in package 'android'
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res-auto">
<item
android:id="@+id/action_add_new_alarm" //error is here.
android:icon="@drawable/action_bar_add"
android:orderInCategory="100"
android:showAsAction="ifRoom" //error is here
android:title="" />
<!--<!––>-->
</menu>
and the error I am getting is this
Error:(3) No resource identifier found for attribute 'id' in package 'com.xxx.xxxxx'
Error:(3) No resource identifier found for attribute 'orderInCategory' in package '
And one more thing I am using android studio.