I'm trying to instantiate a fragment and have it replace another fragment. Looking at multiple sources hasn't worked, yet. When I use the findNavController to see if the other fragment does indeed show, it works, but as a test, I tried replacing a fragment with itself, using the replace function, I receive the following error below:
I am building a quiz app. The goal is to use fragments, and have the inputFragment (containing input questions) and multiFragment (containing multiple choice questions) be used together at the same time, while pulling data from my Firebase DB, where my different types of questions are stored.
findNavController opens the inputFragment (black), but as soon as I use replace, the App breaks. Here are screenshots of my code and errors: Hope someone can help....