kluck
05/06/2019, 7:27 AMFailed to instantiate one or more classes
The following classes could not be instantiated:
- splitties.views.dsl.idepreview.UiPreView (Open Class, Show Exception, Clear Cache)
Here's my preview file `src/debug/res/layout/main_preview.xml`:
<splitties.views.dsl.idepreview.UiPreView
xmlns:android="<http://schemas.android.com/apk/res/android>"
xmlns:app="<http://schemas.android.com/apk/res-auto>"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:splitties_class_package_name_relative=".MainUi"/>
The actual Ui file:
class MainUi(override val ctx: Context) : Ui {
override val root = coordinatorLayout {
fitsSystemWindows = true
add(appBarLayout(theme = R.style.AppTheme_AppBarOverlay) {
add(toolbar {
popupTheme = R.style.AppTheme_PopupOverlay
(ctx as? AppCompatActivity)?.setSupportActionBar(this)
}, defaultLParams())
}, appBarLParams())
add(frameLayout(id = R.id.container) {}, contentScrollingWithAppBarLParams())
}
}
In my dependencies, I have debugImplementation("com.louiscad.splitties:splitties-views-dsl-ide-preview:$splittiesVersion")
Is there something I might have missed?louiscad
05/06/2019, 11:58 AMlouiscad
05/06/2019, 12:51 PMkluck
05/06/2019, 12:59 PMlouiscad
05/06/2019, 1:01 PMkluck
05/06/2019, 1:15 PMsplitties_class_fully_qualified_name
and not the splitties_class_package_name_relative
.kluck
05/06/2019, 1:15 PM