error: Schema export directory is not provided to the annotation processor so we cannot export the schema.
Dagger Hilt を使っている時に遭遇。
Roomを使っているクラスを置き換えているとき、ビルドエラー発生。
メッセージ: Schema export directory is not provided to the annotation processor so we cannot export the schema.
Databaseを定義する際のアノテーションで、exportSchema = falseを設定すると回避できる。
@Database(entities = {XXXXX.class}, version = 1, exportSchema = false) public abstract class XXXDatabase extends RoomDatabase { }