Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
[ID: 558956]
View issue level access limits(Press Alt + Right arrow for more information)
Unintended behavior
View staffing
Attachment actions
Description
Previews that are dependent on dimension resources don't render.
Steps to repro:
ScreenshotTests.kt
Expected result:
GreetingPreview
is rendered correctly in the preview panel, displaying the text "Hello"Actual result:
GreetingPreview
is not rendered in the preview panel, instead an error mark is shown, however, no error is displayed in the error messages panel.Note that if I remove the following block of code from the preview, it is rendered correctly:
This would indicate that there is possibly a problem resolving the resource value. Possible dup of https://b.corp.google.com/issues/370696614 .
Android Studio details: Android Studio Ladybug | 2024.2.1 Build #AI-242.21829.142.2421.12409432, built on September 24, 2024 Runtime version: 21.0.3+-79915917-b509.11 aarch64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o. Toolkit: sun.lwawt.macosx.LWCToolkit macOS 14.7.1 GC: G1 Young Generation, G1 Concurrent GC, G1 Old Generation Memory: 8192M Cores: 10 Metal Rendering is ON Registry: ide.instant.shutdown=false ide.experimental.ui=true i18n.locale=