问题
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.
This is what it should normally look like.
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.
回答1:
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, 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)
回答2:
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
来源:https://stackoverflow.com/questions/64952961/android-studio-4-1-1-macos-bigsur-freezing-problem-in-fullscreen