Errors given below where no resource is found at text or icon :
- No resource found that matches the given name (at ‘icon’ with value ‘@drawable/ic_search’)
- no resource found that matches the given name (at ‘text’ with value
You should take care of two things as not to get such errors :
1. You must have ic_search (whatever error value you received) in your strings.xml
( Main Reason for @String) folder of project.
2. You must have ic_search IMAGE ( Main reason for @drawable ) in your drawable folder. Drawable folder is under RES folder of your project.
If you don’t have image with the name ic_search then you will get the error. Make sure to put images by going to the respective folders. Once done, Error will vanish.
If it helped you, please share the post.