Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio 4.1.1- MacOS BigSur - Freezing Problem in FullScreen

I am using the latest version of Android Studio (4.1.1). After updating the Mac operating system, Android Studio started encountering strange errors.

The most annoying problem I have ever had. When I want to open a new github branch, the window appears as below and freezes.

enter image description here

This is what it should normally look like.

enter image description here

Of course, this is the only window problem I've noticed. The most important problem here is that the screen freezes and no action can be taken.

If people who have problems or have a solution on this issue share it with me, everyone will benefit. Thank you.

Edit : This issue has been officially resolved in Android Studio 4.2.

like image 915
snorlax Avatar asked Nov 22 '20 10:11

snorlax


People also ask

How to fix Android Studio freezes on macOS Big Sur?

Android Studio freezes on macOS Big Sur. On machines running macOS Big Sur, Android Studio 4.1 might freeze when you open a dialog. Go to the Apple Menu, select System Preferences > General. In the Prefer tabs when opening documents option, select "never". Then restart Android Studio.

Why does the IDE freeze when opening Tabs?

The IDE freezing when opening tabs is due to macOS's default settings. Go to System Preferences > General > Prefer tabs and select never. Alternatively, you can run this command in Terminal if you want to keep tabs for all other apps except Android Studio (the ideal solution):

When will Android Studio 4 1 1 1 be available?

Android Studio 4.1.1 available Tuesday, November 10, 2020 Android Studio 4.1.1 is now available in the Stable channel. If you already have an Android Studio build on the Stable channel, you can get the update by clicking Help > Check for Update (Android Studio > Check for Updates on macOS).


2 Answers

The problem is that when macOS is set to prefer tabs, Android Studio 4.1.1 on macOS Big Sur also opens things like branch settings in tabs instead of windows.

To fix it, you can prevent those tabs only in Android Studio.

Open Terminal and run this command:

defaults write com.google.android.studio AppleWindowTabbingMode manual

Now Android Studio will use windows again and not crash.

Solution was found on reddit https://www.reddit.com/r/androiddev/comments/jtbl4m/has_anyone_updated_to_macos_big_sur_and_is/gc8pfhg/?utm_source=reddit&utm_medium=web2x&context=3

like image 50
Alex Wally Avatar answered Sep 21 '22 05:09

Alex Wally


It's a known issue in Android Studio

As per Developer page -

Android Studio freezes on macOS Big Sur. On machines running macOS Big Sur, Android Studio 4.1 might freeze when you open a dialog.

To work around this issue, do one of the following:

  • Go to the Apple Menu, select System Preferences > General. In the Prefer tabs when opening documents option, select "never". Then restart Android Studio.

  • Upgrade to Android Studio 4.2, currently available in the Beta channel.

Otherwise, wait for the Stable Android Studio 4.2

like image 31
Vishal Yadav Avatar answered Sep 20 '22 05:09

Vishal Yadav