I am using Android Studio Narwhal 3 Feature Drop 2025.1.3. On my Mac, I am using Tahoe version 26.0.1. It also has 16GB of RAM and an M1 Pro, so power is not an issue. The thing is, when I work with the programme for an indefinite amount of time, it freezes, but if you change the size of the window, it unfreezes.
Why does this happen?
I have tried other more recent versions and the problem is the same.
This workaround worked for me.
If Android Studio freezes randomly on macOS (but unfreezes when resizing the window), this is likely caused by a Metal/JBR rendering issue.
Steps to fix:
Go to Android Studio → Help → Edit Custom VM Options…
Add the following line on a new line:
-Dsun.java2d.metal=false
Save and restart Android Studio.
Disabling Metal forces the IDE to repaint using a more stable rendering path. The “resize to unfreeze” behavior is a classic sign of this Metal/JBR bug.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With