After upgrading to Android Studio Artic Fox. EVERY SINGLE ONE of my Custom Views do not render in the layout preview. Is there a known workaround right now for this problem? My app compiles perfectly fine, and functions exactly as before the Artic Fox update. Actually, I haven't even changed the project settings or source code besides updating to Artic Fox. And now all of my custom views do not render anymore.
I have backups of different version of my app. I create a copy of the older version and open them in Artic Fox. And still, these older version don't have previewable custom views either! It turns out that after a rebuild on the older backups, my custom Views will render perfectly fine in the layout preview. Therefore, the problem is probably related to my specific project configuration.
I tried downgrading gradle 7.0.0 back to 4.2.0 and invalidating the cache and restarting. It did not fix it.
I get this warning for every single custom view:
Missing Class:
The following classes could not be found
com.poetryrocksalot.dummyproject.widget1 (Fix Build Path, Edit XML, Create Class) com.poetryrocksalot.dummyproject.widget2 (Fix Build Path, Edit XML, Create Class) com.poetryrocksalot.dummyproject.widget3 (Fix Build Path, Edit XML, Create Class) com.poetryrocksalot.dummyproject.widget4 (Fix Build Path, Edit XML, Create Class) com.poetryrocksalot.dummyproject.widget5 (Fix Build Path, Edit XML, Create Class) com.poetryrocksalot.dummyproject.widget6 (Fix Build Path, Edit XML, Create Class) com.poetryrocksalot.dummyproject.widget7 (Fix Build Path, Edit XML, Create Class) etc...