Hello All, I have been struggling with ```java.la...
# compose
d
Hello All, I have been struggling with
Copy code
java.lang.IllegalArgumentException: SavedStateProvider with the given key is already registered
I'm trying to launch the file explorer for the user to pick a file, and then when the user clicks to return back to the compose screen . I'm getting this error, this was not there before not sure what has changed
Basically i have a Fragment which hold different jetpack compose navigation screens, and in one of the compose screen i have trying to launch the file explorer using
Copy code
val registerTakeFile = rememberLauncherForActivityResult(
                ActivityResultContracts.OpenDocument()
            ) { uri ->}
when the user selects the file the exception is thrown. I'm using the same ViewModel across the screen and the fragment.
I guess this is also the same issue https://github.com/google/dagger/issues/2166
c
Can you possibly create a minimal sample github repo? I'll clone and take a look if I can help!
d
Sure i will do that and share it here