https://kotlinlang.org logo
#compose
Title
# compose
t

Tolriq

07/01/2021, 6:15 PM
Ok so even after full cache invalidate and everything still
Copy code
The following classes could not be found:
- androidx.compose.ui.tooling.preview.ComposeViewAdapter
So the IDE (AGP 7.0.0 B4) still reference the previous package name. Will this require a new AGP / IDE build ?
j

jim

07/01/2021, 6:26 PM
I don't think any new version of IDE nor AGP is required, but you do need to have the right maven artifact coordinates. I think
ui-tooling
and
ui-tooling-preview
t

Tolriq

07/01/2021, 6:33 PM
I do but that one was migrated to the ui-tooling package name but something still reference it.
And from the PR doc there's no need to use the new preview unless we want to actually remove the preview stuff for release size.
c

Chris Sinco [G]

07/02/2021, 6:36 PM
This is a known issue now with the tracking bug here: https://issuetracker.google.com/192570889 (thanks @Tolriq for filing!)
There’s also a workaround which is setting
ui-tooling
to
beta09
t

Tolriq

07/02/2021, 6:51 PM
The workaround is quite limited as if any external library or module use ui-tooling or ui-tooling-preview is updated to RC1 this will lead to dex merge errors during building and will require excludes everywhere. Seeing only AS AF B5 was out today what is the ETA for RC1 @Chris Sinco [G]
c

Chris Sinco [G]

07/02/2021, 6:53 PM
Likely in a couple weeks but things may slip
t

Tolriq

07/02/2021, 6:56 PM
😞 Ok so I'll publish internally a fork with modified package to fit the gap to avoid any issues. Thanks.
🙏 1
c

Colton Idle

07/02/2021, 7:00 PM
@Chris Sinco [G] that link seems internal only?
🙏 1
c

Chris Sinco [G]

07/02/2021, 7:04 PM
Oops! updated!