There is an error for using model in java. I have added the kotlin dependency to make it work still it is not working.