I just installed Android Studio and everything ran fine but then I opened AS for a second time after my computer had turned off and I am getting the following error:
I had the same problem. Click on the event log on the bottom right-hand corner. You should see a message saying "Android framework is detected in the project Configure". Then click the configure option.This solved the problem for me.