When I opened android studio today, it showed me the following errors:
None of the single solutions above where sufficient for me. I had the same issue after updating from android studio 2.3.3 to 3.1.2.