79435540

Date: 2025-02-13 08:51:00
Score: 0.5
Natty:
Report link

This seems to be an issue with layoutlib (which Android Studio uses for rendering XML or compose preview) not mocking DisplayManagerGlobal.registerDisplayListener until latest version.

As mentioned in the github issue comment, latest version of layoutlib seems to have fixed the issue. So, later versions of Android Studio should also have the fix and Android Studio 2024.3.1 RC 01 does seem to work without this issue.

2024.3.1 stable version isn't released yet though, consider downgrading to 2024.2.1 if you must be using a stable release.

You can also refer to the bug filed to the CameraX team regarding this issue in case of any further feedback: http://issuetracker.google.com/issues/394108664

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Tahsin Masrur