I clean installed the latest Android Studio and it installed fine. The only thing I customized was the installation directory (Added one level). When it finished, I allowed it to auto-run Android Studio, and it instantly started.
So I started a new empty view activity project and named it "My First Application". It opened the project and started doing stuff in the taskbar. I assume it always does this on a fresh installation (because when I created a new project later, it didn't do it again). But all of a sudden, after a few seconds, Android Studio just blinked out without warning. I waited in case it was restarting, but nothing happened, so I started it manually, and it seemed to carry on "doing stuff" for a couple seconds, then it blinked out again. I waited, then started it manually for the second time. This time it stayed on, which is where we get to the current issue.
Current issue

Apparently there were now 20 errors in the default project code. Mostly reference errors, so I assume something is missing due to the interruption, but as I am completely new to this current AS experience, I have no idea of where to look or how to check if the project dependencies have initialised correctly, which I assume is what it was doing. Maybe I need to reinstall Gradle. I have no idea what the references are referencing, but I'm sure finding out wouldn't fix the problem. So while I'd like to know why it crashed, I don't actually care if I can just fix it by repeating, successfully, whatever it was doing when it crashed.
Things I've tried to get it to repair itself
I closed the project and opened a new one. Same issues. I uninstalled it and re-installed AS, and it now says 22 errors. I attempted to find a dedicated Android Studio dev help forum but was unsuccessful, so I posted where I ended up. They suggested I create a bug report which I did. But I'm still stuck with 22 code errors and no help.
My question
How can I fix this? If I get it to re-do what it was doing when it got interrupted, it may just crash again (I know the popular definition of "insanity"). So I may also need to know WHY it happened.
Details
You can download the diagnostics from the bug report, which includes metrics.
Источник: https://stackoverflow.com/questions/781 ... s-going-on
Мобильная версия