Why can't I import NavController and ViewController into Service or App?

@praveenjp, my situation was similar to yours, I’ve solved using this post: Cannot resolve all parameters error?
Notice that the parameter now it’s just “nav”, cause you’re calling the one returned by the get parameters()