8

After updated to Arctic Fox version, the xml layout previewer looks fuzzy, unclear, see below:

enter image description here

enter image description here

How to fix it?

Syscall
  • 19,327
  • 10
  • 37
  • 52
Sam Chen
  • 7,597
  • 2
  • 40
  • 73
  • Just adjust the zoom? – javdromero Aug 05 '21 at 15:26
  • @javdromero That will be very painful. It was clear in previous version. – Sam Chen Aug 05 '21 at 15:34
  • I have seen quite a few posts here regarding this, maybe it's an IDE issue as usual. I don't trust the stable updates these days because minute but important things like these break for no reason – gtxtreme Aug 05 '21 at 15:48
  • Hi this is related to Android Studio Arctic Fox version. Please see https://stackoverflow.com/questions/68587416/how-to-fix-preview-tab-bug-in-android-studio-arctic-fox – Abdullah Sep 17 '21 at 14:18

5 Answers5

4

It helped me: Help => Edit Custom VM Options => Paste "-Dsun.java2d.uiScale.enabled=false" and restart the IDE.

For more information, click here.

plplmax
  • 1,765
  • 8
  • 19
0

Not just XML preview, the Jetpack Compose preview is also very blurry on my Macbook. I tried the old trick Help > Edit custom properties and add:

hidpi=false

But this did not work (maybe it will work on Windows, you can try). Currently I have to revert back to Android Studio 4.2.2 .

Anh Ha
  • 114
  • 3
0

My issue is resolved when I installed the Oracle Java JDK 11 and then changed the JAVA_HOME directory from JDK1.8_xxx to latest JDK I installed and then I restarted my system Image after doing this

0

I has same issue and i have been used all tricks and method but preview was not showing, at last i used below code and it worked.

configurations.all {
    resolutionStrategy {
        force 'androidx.core:core-ktx:1.6.0'
    }
}
Pir Fahim Shah
  • 10,505
  • 1
  • 82
  • 81
0

Now the latest version (BumbleBee) fixed this problem.

Sam Chen
  • 7,597
  • 2
  • 40
  • 73