Hi, I'm having some issues with `Room DB` ksp anno...
# ksp
b
Hi, I'm having some issues with
Room DB
ksp annotation processing with enabling
minification
It works fine without
minification
I'm getting this error
Caused by: java.lang.NoSuchMethodException: <http://com.MY|com.MY>_PROJECT.data.room.AppDatabase_Impl.<init> []
So it's not finding the created class, although I can see it is generated at
app/build/generated/ksp/release/java/com/MY_PROJECT/data/room/AppDatabase_Impl.java
I've included these in my ProGuard rules which I would assume would protect them from minification too
Copy code
-keep class * extends androidx.room.RoomDatabase
-keep class * extends com.MY_PROJECT.data.room.AppDatabase
Does anyone have any ideas what could be wrong?
I've resolved it - it was a bug in the latest stable version of room, but the alpha version 2.7.0 has fixed it I had to change where I injected the database with
Copy code
MyDatabase::class.java

->

 factory =  { MyDatabase::class.instantiateImpl() }
when initialising the database to avoid reflection usage