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:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user