Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How to execute a script when I start Android Studio?

I would like to execute a script when I launch Android Studio (eg npm update -g and flutter upgrade). Is it possible, and if yes how?

>Solution :

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

Use Startup Tasks for this –

  • File > Settings.

  • In the settings window, search for "Startup Tasks" using the search bar.

  • Click on "Edit Custom VM Options" and a dialog box will appear.

  • Add the following line at the end of the file, replacing the path with the path to your script:

    -Didea.executable.launcher.<SOME_UNIQUE_ID>=/path/to/your/script

  • Save & Restart Android Studio.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading