at line 5 (android:icon="@drawable/rand") I am getting error (Cannot resolve symbol '@drawable/rand' less... (Ctrl+F1)
Validates resource references inside Android XML files.)
and at line 7 (android:showAsAction="always") I am getting error (Should use app:showAsAction with the appcompat library with xmlns:app="http://schemas.android.com/apk/res-auto" less... (Ctrl+F1)
When using the appcompat library, menu resources should refer to the showAsAction in the app: namespace, not the android: namespace. Similarly, when not using the appcompat library, you should be using the android:showAsAction attribute.)
I'm getting some more errors but if anyone Knows why I am getting these please share!
With errors like that, maybe you need to restart the project. Invalidate caches is a good check, it's in the File menu.
Anyway, @drawables means res/drawables, so you can check if the file is there, possibly re-adding it. Note though, @drawables has been deprecated (for the most part) in favor of @mipmap, which should be used instead.
The tools thing can be annoying. Try recreating the tag from scratch and follow what the autocode suggests. I once went through a learning experience based on the wrong containing tag.
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads