Sunday, December 29, 2019

When Android Studio can't open the run configurations dropdown

I was doing some quick testing using a class with a main method in Android Studio, launching it with the run button in the margin, which creates an ad hoc run configuration. I then Refactor | Rename'd the class, at which point an IDE Error occurred, probably because there was suddenly no class with the most recently run name. (I assume the same thing would have happened in IntelliJ.) After this, even trying to pull down the run configurations dropdown to pick a different one didn't work.

To reset the workspace, I had to close Android Studio, delete the workspace.xml file from the .idea directory, and reopen the IDE. That cleared various things including the ad hoc run configurations.

No comments:

Post a Comment