Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Dialogs are displayed as tabs in Android Studio IDE then the IDE becomes unresponsive [duplicate]

I am having a problem with Android Studio 4.1 where particular things that should show up as dialogs(like tip of the day or an update dialog) are displayed as fullscreen tabs and then Android Studio becomes unresponsive, CPU usage goes through the roof and the fan kicks in almost immediately, and I have to force it to quit.

This is happening on Mac and I recently updated to macOs Big Sur but everything was working fine until 2 days ago when this started happening so I don't if I hit some key combination to make this happen or something else is wrong.

I deleted and reinstalled Android Studio but the problem still persists. Below is a screenshot of this happening when I had just got an alert about a Gradle Update and I clicked on update.

EDIT

On trying to find out further what the problem could be, this only occurs when the Android Studio window is in maximised/fullscreen mode

enter image description here

like image 266
nada Avatar asked Nov 19 '20 08:11

nada


People also ask

What is dialog in Android?

A dialog that can show a title, up to three buttons, a list of selectable items, or a custom layout. A dialog with a pre-defined UI that allows the user to select a date or time. Caution: Android includes another dialog class called ProgressDialog that shows a dialog with a progress bar.

Why is progressdialog deprecated in Android?

Caution: Android includes another dialog class called ProgressDialog that shows a dialog with a progress bar. This widget is deprecated because it prevents users from interacting with the app while progress is being displayed.

How do I show a dialogfragment in Android?

When you want to show your dialog, create an instance of your DialogFragment and call show (), passing the FragmentManager and a tag name for the dialog fragment. You can get the FragmentManager by calling getSupportFragmentManager () from the FragmentActivity or getFragmentManager () from a Fragment. For example:

How to build an alertdialog in Android?

To build an AlertDialog: // 1. Instantiate an <code><a href="/reference/android/app/AlertDialog.Builder.html">AlertDialog.Builder</a></code> with its constructor // 2. Chain together various setter methods to set the dialog characteristics // 3.


1 Answers

I had the same problem in fullscreen, it seems it is related to big sur, I had to run this on the terminal and restart the android studio

defaults write com.google.android.studio AppleWindowTabbingMode manual

I found the tip here: https://stackoverflow.com/a/64837992/2551801

This should help in the mean time a new stable version is released.

like image 65
mickecast Avatar answered Nov 03 '22 00:11

mickecast