You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Match the app's linked R.jar in the render classpath across AGP forms (#24)
Every ComposeView-backed preview loads androidx.customview.poolingcontainer.R$id
at PoolingContainer.<clinit>; that class ships only in the app's AAPT2-linked
R.jar, not the runtime jar. The non-KMP render path matched that jar at
compile_and_runtime_r_class_jar only, but an app's linked R can live under
compile_and_runtime_not_namespaced_r_class_jar depending on the AGP config or
version. When it does, the R.jar is dropped from the render classpath, so every
preview crashes at ComposeViewAdapter and falls back to the portrait Robolectric
path with the @Preview size ignored.
Match both forms with the compile_and_runtime*r_class_jar wildcard, the same
pattern wireKmpConsumerResources already uses for KMP consuming apps.
0 commit comments