-
Notifications
You must be signed in to change notification settings - Fork 232
Open
Labels
bugSomething isn't workingSomething isn't working
Milestone
Description
Description
I've been trying to write a simple test for a view that uses data binding (root is layout), but I keep getting the error
Caused by: android.view.InflateException: Binary XML file line #1: Error inflating class layout
Caused by: java.lang.ClassNotFoundException: onCreateView
...
Caused by: java.lang.ClassNotFoundException: layout
On the project sample I can see examples using View Binding, but not Data Binding.
Steps to Reproduce
Try to inflate a view with Data Binding
@Test
fun testDefaultBinding() {
val view = FragmentBinding.inflate(paparazzi.layoutInflater)
paparazzi.snapshot(view.root)
}
Expected behavior
Test runs normally
Additional information:
- Paparazzi Version: 1.3.1
- OS: Mac OS
- Compile SDK: 33
- Gradle Version: 8.0.2
- Android Gradle Plugin Version: 8.0.2
Screenshots
N\A
arnas-savickis-tg, xatok, Krzysztof-Daniluk, vitusortner, ychescale9 and 2 more
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working