My issue there for the same error was that the the binding class (data object) was an inner class. It was public though, yet I got the error. However, upon moving that as a public normal class, error went away. Strange! From memory I think inner classes could be used?