rafi0101 / Android-Room-Database-Backup

Simple tool to backup and restore your room database in Android
MIT License
239 stars 19 forks source link

Problem with having access to 'androidx.fragment.app.FragmentActivity' #27

Closed AhmetOnay closed 1 year ago

AhmetOnay commented 1 year ago

Hey,

i am trying to use this with an kotlin app and get the error:

Cannot access 'androidx.fragment.app.FragmentActivity' which is a supertype of 'de.raphaelebner.roomdatabasebackup.core.RoomBackup'. Check your module classpath for missing or conflicting dependencies

This comes when i try the following code: val backup = RoomBackup(context) Column { AppBar( title = title, navController = navController ) Text(text = "Welcome to the $title-Screen!") Button(onClick = { backup.database(MyDatabase.getDatabase(context)) } }

Best Regards Ahmet