I reported this in issuetracker already, but does ...
# compose
a
I reported this in issuetracker already, but does anyone know if there is a workaround to get Previews which reference resources working in your application modules when in a multi-module project with nonTransitiveRClasses enabled? https://issuetracker.google.com/issues/236141674
Copy code
android.content.res.Resources$NotFoundException: Could not resolve resource value: 0x7F07009B.
	at android.content.res.Resources_Delegate.throwException(Resources_Delegate.java:1161)
	at android.content.res.Resources_Delegate.throwException(Resources_Delegate.java:1137)
	at android.content.res.Resources_Delegate.throwException(Resources_Delegate.java:1141)
	at android.content.res.Resources_Delegate.getResourceValue(Resources_Delegate.java:929)
	at android.content.res.Resources_Delegate.getValue(Resources_Delegate.java:900)
	at android.content.res.Resources.getValue(Resources.java:1437)
	at androidx.compose.ui.res.PainterResources_androidKt.painterResource(PainterResources.android.kt:61)
There was an issue with nontransitiveRclasses fixed before with this bug: https://issuetracker.google.com/issues/206862224 but that seems to have only fixed your @Previews in library modules. At least thats our experience. There is a sample project attached in my new ticket which is just the blank compose project with a library module added into the package defining a drawable.