BatteryStateDatabase: Set exportSchema to false

Log:
Output:
packages/apps/Settings/src/com/android/settings/fuelgauge/batteryusage/db/BatteryStateDatabase.java:35: error: Schema export directory was not provided to the annotation processor so Room cannot export the schema. You can either provide `room.schemaLocation` annotation processor argument by applying the Room Gradle plugin (id 'androidx.room') OR set exportSchema to false.
public abstract class BatteryStateDatabase extends RoomDatabase {
                      ^

Change-Id: I493d978ee204761e93fb177680bd102c30b45e9c
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
This commit is contained in:
someone5678
2024-03-11 08:51:53 +09:00
committed by Joey
parent aedee4b1db
commit b1e4fb94ef

View File

@@ -33,7 +33,8 @@ import androidx.room.RoomDatabase;
BatteryUsageSlotEntity.class,
BatteryReattributeEntity.class
},
version = 3)
version = 3,
exportSchema = false)
public abstract class BatteryStateDatabase extends RoomDatabase {
private static final String TAG = "BatteryStateDatabase";
private static final String DB_FILE_NAME = "battery-usage-db-v11";