1

Android Studio lost all the run-configurations of a project and it is not the first time this happened. This always occurs (as far as I can tell), when switching projects and/or having opened an Android project in IntelliJ IDE.

In an attempt to restore them, I've reverted several missing .xml files from the .idea directory, including runConfigurations.xml, which did not yield the desired result. the documentation does not really help either.

Q: Where are these run configurations being stored, (in order to keep a backup of them)?

Martin Zeitler
  • 1
  • 19
  • 155
  • 216
  • See https://www.jetbrains.com/help/idea/run-debug-configurations-dialog.html for relevant documentation. When **Share** check-box is enabled it is stored under `.idea/runConfigurations/` directory. – Andrey Sep 18 '18 at 12:40
  • @Andrey this works for me, can check them in; never noticed that `Share` checkbox top-right, until now. please post it as an answer and I'll accept it. – Martin Zeitler Sep 18 '18 at 19:53

1 Answers1

4

As described in Run/Debug Configurations Dialog documentation when: Share check-box is enabled Run/Debug Configuration files are stored under .idea/runConfigurations/ directory.

Andrey
  • 15,144
  • 25
  • 91
  • 187