Android Studio - automatic project load

I cannot find a way to prevent Android Studio from automatically loading the last project in use. I want it open me the beggining window with the list of projects available and not loading the last used automatically.

Upvotes: 56

Views: 25872

Answers (6)

codingjeremy
codingjeremy

Reputation: 5741

I ran into this problem on MacOS when I added Android Studio Canary and Intellij. I'm not sure which caused the issue.

Anyway, here's the steps that I used to fix it:

  1. Open Android Studio to see what project it opens; write down that project.
  2. It will freeze, so you need to force quit it.
  3. Erase the nodes where that project name exists. For me it was the last <entry> element and the <option> element in the recentProjects.xml file (location below). Make sure you delete the complete element!
  4. Restart and it should work. Otherwise, repeat for the new recently opened project that is freezing Android Studio.

Where is the file?

  • ~Library/Application Support/Google/AndroidStudio4.1/options

It took me digging up the location of Intellij files then back tracking it to Google then Android Studio to find where the file exists. I hope I save someone the time I wasted on this. :D

Extra note:

The <entry> node is in here:

<application>
  <component name="RecentProjectsManager">
    <option name="additionalInfo">
      <map>

Upvotes: 0

chrisfey
chrisfey

Reputation: 428

If the project that is being reopened is causing android studio to stop responding you may not be able to get to the dialog. I got round this by deleting

~/Library/Preferences/AndroidStudio3.3/options/recentProjects.xml

This allowed me to temporarily start android studio without reopening the offending project, and then permanently disable the reopening feature using the dialog others have mentioned

Upvotes: 1

Amir Khorsandi
Amir Khorsandi

Reputation: 3708

In Appearance & Behavior -> System Setting , also you can change some other setting about open or save projects

Android Studio 2.1.1 MacOS X

UPDATE

This screen can accessed in Android Studio 3.1.3 on MacOS High Sierra by selecting the Android Studio -> Preferences menu

Screenshot Android Studio 2.1.1 MacOSX

Upvotes: 45

Jorgesys
Jorgesys

Reputation: 126455

Android Studio or Intellij IDEA:

From the menu go to :

File > Settings >Appearence & Behavior > System Settings.

disable the option:

Reopen last project on startup

introducir la descripción de la imagen aquí

Upvotes: 16

firemaples
firemaples

Reputation: 1541

The location of Reopen last project on startup was moved to Settings => Appearance & Behavior => System Settings with new Android Studio, just uncheck it!

Upvotes: 96

gio
gio

Reputation: 5020

Open Settings, go to General and remove check from Reopen last project on startup

Upvotes: 6

Related Questions