I had the same problem. I used API API 21 as the target API, and I got this kind of problem when I open an xml file or some IDE parameters.
I solved the problem of updating the installed software in the Android SDK Manager. I'm not sure if updating all installed software is necessary or only API 21 SDK platform, but I installed all available updates and solved my problem.
source
share