@Dragan.T ‘s answer is correct.
Adding
implementation "androidx.navigation:navigation-compose:2.5.3
Solved my problem. As for why we need to add, I am not so sure.
Edit: Be sure to replace 2.5.3 with latest version.
@Dragan.T ‘s answer is correct.
Adding
implementation "androidx.navigation:navigation-compose:2.5.3
Solved my problem. As for why we need to add, I am not so sure.
Edit: Be sure to replace 2.5.3 with latest version.