Maciej Czekański
03/30/2022, 1:43 PMThe following classes could not be instantiated:
- androidx.compose.ui.tooling.ComposeViewAdapter (Open Class, Show Exception, Clear Cache)
Tip: Use View.isInEditMode() in your custom views to skip code or show sample data when shown in the IDE. If this is an unexpected error you can also try to build the project, then manually refresh the layout. Exception Details java.lang.ClassNotFoundException: androidx.customview.poolingcontainer.R$id
It happened to me after updating compose to 1.2.0-alpha06
. It doesn't work both on Chipmunk and DolphinFilip Wiesner
04/06/2022, 11:55 AMMaciej Czekański
04/06/2022, 12:11 PMChris Sinco [G]
04/06/2022, 12:49 PMMaciej Czekański
04/06/2022, 12:51 PMmiqbaldc
04/07/2022, 7:20 AMMaciej Czekański
04/07/2022, 7:23 AMandroidx.customview:customview-poolingcontainer:1.0.0-alpha01
dependencyFilip Wiesner
04/07/2022, 7:58 AMMaciej Czekański
04/07/2022, 7:59 AMChris Sinco [G]
04/07/2022, 8:06 AMTash
05/24/2022, 12:50 AM1.2.0-alpha08
🤔Chris Sinco [G]
05/24/2022, 2:02 AMTash
05/24/2022, 2:32 AMChris Sinco [G]
05/24/2022, 3:25 AMTash
05/24/2022, 5:51 PM1.2.0-alpha08
+ Kotlin 1.6.20
Looks to be this issue: https://issuetracker.google.com/issues/227767363
and adding
debugImplementation("androidx.customview:customview:1.2.0-alpha01")
debugImplementation("androidx.customview:customview-poolingcontainer:1.0.0-beta01")
seems to get rid of it. wondering if there’s an alternative though?Chris Sinco [G]
05/26/2022, 3:55 PM