The fail-proof way I get both of my dogs to take pills is to get a little cream cheese (just a little bit) an put the pill inside of it..like mold the cheese around the pill. Give that like it's a treat and have another tiny piece with no pill ready to go right behind it so they see it and swallow what they have. That way, they never keep it in the mouth and figure out there is a pill in it.
The constant licking and hiding sounds like anxiety. Could be not wanting to take meds or could be pain in the ears causing it.
To get her to eat, try drizzling a little bit of chicken broth over her kibble. If that doesn't work on its own..feed her the broth covered pieces by hand (again like a treat)