Android studio no longer opens project in maimized window - android-studio

Since a recent Android Studio (or Windows 10?) update, when I open an existing project in Android Studio, the main window is no longer maximized, as it use to be. I cannot find a setting to specify opening a project in a maximized window. A slight but niggling nuisance.
Operating system: Windows 10
Android Studio version: 4.0.1 (Latest at the time of writing)
Thanks in advance for any suggestions.

install a plugin which named: window-decorate-mode-switcher
enable Other Settings -> Swith decorate mode -> Auto undecorate on start
For details, please check the following links:
Android Studio everytime starts with minimize window size

Related

Open the Emulator in a different window after Android Studio Bumblebee (2021.1.1) update

The emulator is built-in the Android Studio UI by default after updating to the Bumblebee (2021.1.1) version.
As shown in bellow image there are 5 options in view mode for changing it.
I tried all but any of them doesn't show emulator stand alone like older versions.
I want to see emulator like this without any window:
How can I achieve this behavior like in the older versions?
File -> Settings -> Tools -> Emulator -> Uncheck Launch in a tool window, Click ok.
For me, restarting the IDE was required too.
View Mode > Window
Does Work
See screenshot

Google Play Instant Development SDK Update Fails

Android Studio 3.2 RC3 keeps asking me to update the Google Play Instant Development SDK (from 1.3.0 to 1.4.0), but it always fails the update with this message:
Failed packages:
- Google Play Instant Development SDK (extras;google;instantapps)
How can I fix this?
Close Android Studio completely
File -> Close.
Delete instantapps Folder form your sdk:
C:\Users\xxx\AppData\Local\Android\Sdk\extras\google\instantapps
update again.
read more http://syscurity.blogspot.com/2018/09/failed-packages-google-play-instant.html
I was able to get this working by:
Closing my project (File -> Close Project)
Open SDK Manager from the gear at the bottom of the window
Click Updates on the left
I had to do this twice and it worked the second time.
If that won't work you can try File -> Invalidate Cache/restart -> Invalidate Restart. Android Studio will close and restart and then updates should install properly.
After delete, you reinstall here "Instant"
find the SDK folder instalation,
go to extra-google-instantaps, delete that
folder instantaps
and after that update again with sdk manager, that
old version is the problem
Solved this (in a similar way to previous, with one exception) by
1: Closing Android Studio File -> Close
2: deleting .installer and tools folders in C:\Users\xxx\AppData\Local\Android\Sdk\extras\google\instantapps
3: Launching SDK Manager from Configure dropdown beside gear icon
Note: I tried deleting the entire instantapps folder but when I did this I did not get presented with the option to
install Instant Development SDK.
Close Android Studio
Go to the SDK installed folder
C:\Users\xxx\AppData\Local\Android\Sdk
or maybe you installed in another drive
Then go to extras\google\instantapps and delete this instant apps folder.
Now open Android Studio
Tools -> SDK Manager -> SDK Tools -> Check the box before
"Google Play Instant Development
SDK"
Click Apply and ok
Enjoy your problem free life.
If your version of Android Studio is 3.2, you can go to C:\Users\xxx and delete the version folder other than <.AndroidStudio3.2>. I did this and it succeeded.
Just needs Administrator privilege to install. Try run Android studio as administrator.

Android Studio create project screen is changed today

Greetings.
I am learning java and android development for last two days. I am using android studio version 3.1.3
the welcome screen interface and open project screen that i used yesterday was different.
Today i am seeing a new screen and new way of opening android project.
below are the screen shots.
when i click on create new project the below screen appears
please guide me through this.
Delete the Android Studio folder in the user's folder. Let Android Studio download everything back and the view will become normal.
Going to events on the home screen and clicking 'enable android support' that this fixed my issue, however I did need to re-install all the SDK versions I previously used.

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.
The location of Reopen last project on startup was moved to Settings => Appearance & Behavior => System Settings with new Android Studio, just uncheck it!
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
Android Studio or Intellij IDEA:
From the menu go to :
File > Settings >Appearence & Behavior > System Settings.
disable the option:
Reopen last project on startup
Open Settings, go to General and remove check from Reopen last project on startup
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
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:
Open Android Studio to see what project it opens; write down that project.
It will freeze, so you need to force quit it.
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!
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>

In android studio,cannot load 2 facets-unknown facet type:android and android-gradle

When I open android studio I am getting an error- "Error loading project: Cannot load 2 facets. When I clicked to see the error the following appeared
"2 facets cannot be loaded. You can mark them them as ignored to suppress this error notification.
Unknown facet type:'android', Unknown facet type:'android-gradle'
I tried to add facets ( In Project Structure > Project settings > Modules > clicked project name, then clicked Android as well as Android-Gradle) But both showed as "cannot load facet, unknown facet type." Under Project settings > Facets > both Android and Android-Gradle are displayed as 'Invalid facets'.
My project was running smoothly. This problem occured when I force-closed my laptop before exiting android studio as everything got stuck. After that whenever I open the android studio this problem occurs. I am not able to run my project. Can anyone please help me to solve this?
Just enable Android Support plugin.
Click Ctrl+Alt+S in Windows or Meta+Comma in Mac.
In top search bar type "plugin".
On right side it will show a list of plugins, find Android Support plugin, check it and click OK at the bottom of screen.
This is how it looks:
In Android Studio go to
File -> Settings - > Plugins -> Enable "Android Support" Plugin.
File, Then Settings->Plugin->Enable/Renable Plugin --> Apply --> Restart
This problem occured when i'd updated Android Studio.
In case nothing from other answers works, you don't have another option, except removing broken settings and making clean setup.
So what i am suggesting:
Use Settings Repository Feature to store personal IDE settings
close studio
remove .AndroidStudioX folder from user folder
re-launch studio, do not copy settings from previous version (because settings probably broken and auto-import couldn't import it well)
import personal settings from Settings Repository
For me I went to Settings -> Plugins and de-selected Gradle then immediately re-selected it. Android Studio then asked if I wanted to enable Groovy so I said yes and let it restart and now everything is happy again! (it was checked, but clearly somewhere deep down not truly enabled, so toggling the check-box sorted it)
Not sure if my cause was installing Flutter, but I did have to disable the Flutter plugin before I could build again.
I had the same problem with an ever-increasing number of facets - first 2, then 4, then 5 - and none of the above solutions worked. My solution (Android Studio 3.3, OS X) was to delete ~/Library/Preferences/AndroidStudio3.3/disabled_plugins.txt, which contained org.jetbrains.android and org.jetbrains.maven
I imagine if you have deliberately disabled plugins then you'll have to disable them again manually, but I was able to load all facets again.
Go To ->File->Settings->Plugins->disable/enable Android Support Plugins->Press Ok
Just re-enable Android Support plugin. Then it will ask to restart.
Restart them thats it
I faced this issue in Android Studio 3.2.1 I had to re-import my project after that it works.
I was facing this problem, I tried everything but nothing worked but then I remembered that I updated Android Studio just few hours back and then I enabled the plugins in the Android Studio and restarted it and it worked.
File -> Settings -> Plugin and then just press ok. It will ask to restart the android studio and please restart it.
For me I had to uncheck the plugin Android APK Support. I clicked Apply and then Ok to close the window. Android Studio prompted me to restart the program, and the program restarted. I checked the Android APK Support plugin again and restarted the program. And then I selected File -> Sync Project with Gradle Files
Then it worked just fine.

Resources